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
@@ -0,0 +1,15 @@
@startuml
class CommandDTO {
+ CommandName : string <<get>>
+ converToCommand() : ICommand
}
class "Dictionary`2"<T1,T2> {
}
class CommandDTOBuilder {
+ SetCommandName(name:string) : CommandDTOBuilder
+ AddParameter(key:string, value:object) : CommandDTOBuilder
+ Build() : CommandDTO
}
CommandDTO --> "Parameters<string,object>" "Dictionary`2"
CommandDTO +-- CommandDTOBuilder
@enduml
@@ -0,0 +1,14 @@
@startuml
class CommandHandler {
+ {static} getInstance() : CommandHandler
+ createBlock(prefabId:string, position:Vector3, rotation:Quaternion) : void
+ moveBlock(blockId:string, prePosition:Vector3, newPosition:Vector3, preRotation:Quaternion, newRotation:Quaternion) : void
+ removeBlock(blockId:string) : void
+ removeGroup(blockIds:List<string>) : void
+ rotateBlock(blockId:string, newRotation:Quaternion) : void
+ undoAction() : void
+ redoAction() : void
+ clearHistory() : void
}
MonoBehaviour <|-- CommandHandler
@enduml
@@ -0,0 +1,10 @@
@startuml
class CommandManager {
+ {static} getInstance() : CommandManager
+ setMaxCapacity(capacity:int) : void
+ executeCommand(command:ICommand) : void
+ undo() : void
+ redo() : ICommand
+ clearHistory() : void
}
@enduml
@@ -0,0 +1,10 @@
@startuml
class CreateBlockCommand {
+ CreateBlockCommand(prefabId:string, position:Vector3, rotation:Quaternion, LayerDiff:bool)
+ CreateBlockCommand(commandDTO:CommandDTO)
+ execute() : void
+ undo() : void
+ toDTO() : CommandDTO
}
ICommand <|-- CreateBlockCommand
@enduml
@@ -0,0 +1,10 @@
@startuml
class DeleteBlockCommand {
+ DeleteBlockCommand(blockId:string)
+ DeleteBlockCommand(commandDTO:CommandDTO)
+ execute() : void
+ undo() : void
+ toDTO() : CommandDTO
}
ICommand <|-- DeleteBlockCommand
@enduml
@@ -0,0 +1,10 @@
@startuml
class DeleteGroupCommand {
+ DeleteGroupCommand(blocksId:List<string>)
+ DeleteGroupCommand(commandDTO:CommandDTO)
+ execute() : void
+ undo() : void
+ toDTO() : CommandDTO
}
ICommand <|-- DeleteGroupCommand
@enduml
@@ -0,0 +1,4 @@
@startuml
interface ICommand {
}
@enduml
@@ -0,0 +1,10 @@
@startuml
class MoveBlockCommand {
+ MoveBlockCommand(blockId:string, previousPosition:Vector3, newPosition:Vector3, previousRotation:Quaternion, newRotation:Quaternion)
+ MoveBlockCommand(commandDTO:CommandDTO)
+ execute() : void
+ undo() : void
+ toDTO() : CommandDTO
}
ICommand <|-- MoveBlockCommand
@enduml
@@ -0,0 +1,10 @@
@startuml
class RotateblockCommand {
+ RotateblockCommand(blockId:string, newRotation:Quaternion)
+ RotateblockCommand(commandDTO:CommandDTO)
+ execute() : void
+ undo() : void
+ toDTO() : CommandDTO
}
ICommand <|-- RotateblockCommand
@enduml