Initial commit

This commit is contained in:
HussienX72u
2026-07-21 08:56:10 +03:00
commit 4017028111
9410 changed files with 2150500 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
@startuml
abstract class Block {
- blockData : BlockData
- blockId : string
+ {abstract} setupBlock() : void
+ {abstract} simulate() : void
+ getBlockData() : BlockData
+ SetBlockData(BD:BlockData) : void
+ setBlockId(id:string) : void
+ getBlockId() : string
}
MonoBehaviour <|-- Block
@enduml
+9
View File
@@ -0,0 +1,9 @@
@startuml
class BlockData {
+ blockName : string
+ blockPrefab : GameObject
+ associatedCategory : CategoryData
+ icon : Texture2D
}
ScriptableObject <|-- BlockData
@enduml
+13
View File
@@ -0,0 +1,13 @@
@startuml
class BlockFactory {
- {static} Instance : BlockFactory
- environment : Environment
- blockDataList : List<BlockData>
- blocksData : Dictionary<string, BlockData>
+ {static} getInstance() : BlockFactory
- Awake() : void
- Start() : void
+ createblock(prefabId:string, position:Vector3, rotation:Quaternion, id:string, layerDiff:bool) : GameObject
}
MonoBehaviour <|-- BlockFactory
@enduml
+8
View File
@@ -0,0 +1,8 @@
@startuml
class CategoryData {
+ ID : string
+ blocks : List<BlockData>
+ icon : Sprite
}
ScriptableObject <|-- CategoryData
@enduml
+7
View File
@@ -0,0 +1,7 @@
@startuml
class CodingBlock {
+ <<override>> setupBlock() : void
+ <<override>> simulate() : void
}
Block <|-- CodingBlock
@enduml
+7
View File
@@ -0,0 +1,7 @@
@startuml
class ElectricalBlock {
+ <<override>> setupBlock() : void
+ <<override>> simulate() : void
}
Block <|-- ElectricalBlock
@enduml
+19
View File
@@ -0,0 +1,19 @@
@startuml
class Environment {
- {static} instance : Environment
- blockRegistry : Dictionary<string, Block>
+ onBlockAddedEvent : UnityEvent<Block>
+ onBlockRemovedEvent : UnityEvent<Block>
+ onChangeEvent : UnityEvent
+ {static} getInstance() : Environment
+ getBlockRegistry() : Dictionary<String, Block>
- Awake() : void
+ addBlock(block:Block, existingUUID:string) : void
+ removeBlock(uuid:string) : void
+ applyChanges() : void
+ completeDestroyBlock(block:Block) : void
+ getBlock(uuid:string) : Block
+ clearEnvironment() : void
}
MonoBehaviour <|-- Environment
@enduml
+7
View File
@@ -0,0 +1,7 @@
@startuml
class MechanicalBlock {
+ <<override>> setupBlock() : void
+ <<override>> simulate() : void
}
Block <|-- MechanicalBlock
@enduml
+7
View File
@@ -0,0 +1,7 @@
@startuml
class MechanicalJoint {
+ <<override>> setupBlock() : void
+ <<override>> simulate() : void
}
Block <|-- MechanicalJoint
@enduml