Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ExampleRoomBuildingBehavior: IBuildSystemBehavior
- {
- private RoomData RoomData;
- IBuildSystemProvider m_buildSystemProvider;
- public int Priority {
- get
- {
- Settings.Priority;
- }
- }
- public ExampleRoomBuildingBehavior(IBuildSystemProvider buildSystemProvider)
- {
- m_buildSystemProvider = buildSystemProvider;
- }
- //Execute after selecting room build place
- public ProcessBehavior()
- {
- m_buildSystemProvider.BuildRoom(RoomData);
- }
- }
- class ExampleRoomRemovingBehavior: IBuildSystemBehavior
- {
- private RoomData RoomData;
- IBuildSystemProvider m_buildSystemProvider;
- public ExampleRoomRemovingBehavior(IBuildSystemProvider buildSystemProvider)
- {
- m_scriptedBackendSystem = buildSystemProvider;
- }
- //Execute after clicking on delete the room
- public ProcessBehavior()
- {
- m_buildSystemProvider.RemoveRoom(RoomData);
- }
- }
- class ExampleRoomReplacingBehavior: IBuildSystemBehavior
- {
- private RoomData RoomData;
- IBuildSystemProvider m_buildSystemProvider;
- public ExampleRoomReplacingBehavior(IBuildSystemProvider buildSystemProvider)
- {
- m_scriptedBackendSystem = buildSystemProvider;
- }
- //Execute after clicking on replace room
- public ProcessBehavior()
- {
- m_buildSystemProvider.ReaplaceRoom(RoomData);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement