Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
@startuml
|
||||
class AttachableBlock {
|
||||
- blockType : BlockType
|
||||
- socketContainer : SocketContainer
|
||||
- connectedBlocks : List<AttachableBlock>
|
||||
- attachedJoints : List<JointBlock>
|
||||
+ GetConnectedBlocks() : List<AttachableBlock>
|
||||
+ GetAttachedJoints() : List<JointBlock>
|
||||
+ SetBlockType(BlockType:BlockType) : void
|
||||
+ DisconnectFrom(otherBlock:AttachableBlock) : void
|
||||
+ UnregisterJoint(joint:JointBlock) : void
|
||||
- Awake() : void
|
||||
+ GetSocketContainer() : SocketContainer
|
||||
+ ConnectTo(otherBlock:AttachableBlock, mySocket:SocketPoint, theirSocket:SocketPoint) : void
|
||||
+ RegisterJoint(joint:JointBlock) : void
|
||||
}
|
||||
enum BlockType {
|
||||
Regular,
|
||||
Link,
|
||||
Gear,
|
||||
Structural,
|
||||
}
|
||||
MonoBehaviour <|-- AttachableBlock
|
||||
@enduml
|
||||
Reference in New Issue
Block a user