コード例 #1
0
ファイル: LogicCell.cs プロジェクト: Ubivius/ubivius-game
        public CellInfo() : base()
        {
            m_cellType       = new serialization.types.Byte((byte)CellType.CELL_NONE);
            m_logicCellBytes = new serialization.types.ByteArray(new byte[0]);

            InitSerializableMembers(m_cellType, m_logicCellBytes);
        }
コード例 #2
0
ファイル: LogicCell.cs プロジェクト: Ubivius/ubivius-game
        public CellInfo(LogicCell parentCell)
        {
            if (parentCell != null)
            {
                m_cellType       = new serialization.types.Byte((byte)parentCell.GetCellType());
                m_logicCellBytes = new serialization.types.ByteArray(parentCell.GetBytes());
            }
            else
            {
                m_cellType       = new serialization.types.Byte((byte)CellType.CELL_NONE);
                m_logicCellBytes = new serialization.types.ByteArray(new byte[0]);
            }

            InitSerializableMembers(m_cellType, m_logicCellBytes);
        }