示例#1
0
        public void RegisterToMovableAddon(MovableAddon addon, int x, int y, int z)
        {
            _Addon = addon;

            _OffsetX = x;
            _OffsetY = y;
            _OffsetZ = z;

            UpdatePosition();
        }
示例#2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            _DirectionID = new int[4];

            int version = reader.ReadInt();

            _Addon = (MovableAddon)reader.ReadItem();

            _OffsetX = reader.ReadInt();
            _OffsetY = reader.ReadInt();
            _OffsetZ = reader.ReadInt();

            _Direction = (MovableAddonDirection)reader.ReadInt();

            for (int i = 0; i < 4; i++)
            {
                _DirectionID[i] = reader.ReadInt();
            }
        }