Exemplo n.º 1
0
        public LogicCell()
        {
            m_cellID     = new serialization.types.Int32(m_cellsCreated++);
            m_isWalkable = new serialization.types.Bool(false);

            InitSerializableMembers(m_cellID, m_isWalkable);
        }
Exemplo n.º 2
0
        public DoorCell() : base()
        {
            m_IsClosed = new serialization.types.Bool(false);
            m_doorType = new serialization.types.Int32((int)DoorType.Standard);

            InitSerializableMembers(m_IsClosed, m_doorType);
        }
Exemplo n.º 3
0
                public InputMessage(uint startTick, List <InputFrame> frames, int id)
                {
                    StartTick   = new serialization.types.Uint32(startTick);
                    InputFrames = new InputFrameList(frames);
                    PlayerID    = new serialization.types.Int32(id);

                    InitSerializableMembers(StartTick, InputFrames, PlayerID);
                }
Exemplo n.º 4
0
                public InputMessage()
                {
                    StartTick   = new serialization.types.Uint32(0);
                    InputFrames = new InputFrameList(new List <InputFrame>());
                    PlayerID    = new serialization.types.Int32(0);

                    InitSerializableMembers(StartTick, InputFrames, PlayerID);
                }
Exemplo n.º 5
0
        public DoorButtonCell(DoorCell linkedDoor) : base()
        {
            IsWalkable         = false;
            m_linkedDoor       = linkedDoor;
            m_linkedDoorCellID = new serialization.types.Int32(m_linkedDoor.GetCellID());

            InitSerializableMembers(m_linkedDoorCellID);
        }
Exemplo n.º 6
0
        public ServerInitMessage(int simulationBuffer, Dictionary <int, serialization.types.String> playersCharacters, world.cellType.CellInfo[,] array) : base()
        {
            SimulationBuffer = new serialization.types.Int32(simulationBuffer);
            PlayerCharacters = new StringHashMap(playersCharacters);
            CellInfo2DArray  = new world.LogicGrid.CellInfo2DArray(array);

            InitSerializableMembers(SimulationBuffer, PlayerCharacters, CellInfo2DArray);
        }
Exemplo n.º 7
0
        public ServerInitMessage()
        {
            SimulationBuffer = new serialization.types.Int32(0);
            PlayerCharacters = new StringHashMap(null);
            CellInfo2DArray  = new world.LogicGrid.CellInfo2DArray(null);

            InitSerializableMembers(SimulationBuffer, PlayerCharacters, CellInfo2DArray);
        }
Exemplo n.º 8
0
                public PlayerState(PlayerState player) : base()
                {
                    Position = new serialization.types.Vector2(Vector2.zero);
                    Rotation = new serialization.types.Float(player.Rotation.Value);
                    GUID     = new serialization.types.Int32(player.GUID.Value);

                    InitSerializableMembers(Position, Rotation, GUID);
                }
Exemplo n.º 9
0
                public PlayerState(int playerID) : base()
                {
                    Position = new serialization.types.Vector2(Vector2.zero);
                    Rotation = new serialization.types.Float(0);
                    GUID     = new serialization.types.Int32(playerID);

                    InitSerializableMembers(Position, Rotation, GUID);
                }
Exemplo n.º 10
0
        public DoorCell(DoorType doorType) : base()
        {
            m_IsClosed = new serialization.types.Bool(false);
            m_doorType = new serialization.types.Int32((int)doorType);

            InitSerializableMembers(m_IsClosed, m_doorType);

            IsWalkable = true;
            DoorType   = doorType;
        }
Exemplo n.º 11
0
 public DoorButtonCell()
 {
     IsWalkable         = false;
     m_linkedDoorCellID = new serialization.types.Int32(m_linkedDoor != null ? m_linkedDoor.GetCellID() : 0);
     InitSerializableMembers(m_linkedDoorCellID);
 }