20 lines
600 B
Plaintext
20 lines
600 B
Plaintext
@startuml
|
|
class AttachableBlock {
|
|
+ GetConnectedBlocks() : List<AttachableBlock>
|
|
+ GetAttachedJoints() : List<JointBlock>
|
|
+ SetBlockType(BlockType:BlockType) : void
|
|
+ DisconnectFrom(otherBlock:AttachableBlock) : void
|
|
+ UnregisterJoint(joint:JointBlock) : void
|
|
+ GetSocketContainer() : SocketContainer
|
|
+ ConnectTo(otherBlock:AttachableBlock, mySocket:SocketPoint, theirSocket:SocketPoint) : void
|
|
+ RegisterJoint(joint:JointBlock) : void
|
|
}
|
|
enum BlockType {
|
|
Regular,
|
|
Link,
|
|
Gear,
|
|
Structural,
|
|
}
|
|
MonoBehaviour <|-- AttachableBlock
|
|
@enduml
|