Exemplo n.º 1
0
        public void Deserialize(DeserializeEvent e)
        {
            bulletId = e.Reader.ReadUInt16();

            Origin   = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
            Rotation = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
        }
 public void Deserialize(DeserializeEvent e)
 {
     ID            = e.Reader.ReadUInt32();
     parentID      = e.Reader.ReadUInt32();
     localPosition = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
     localRotation = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
     localScale    = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
 }
Exemplo n.º 3
0
        public void Deserialize(DeserializeEvent e)
        {
            id = e.Reader.ReadUInt32();

            position = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
            rotation = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
            scale    = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
        }
        public void Deserialize(DeserializeEvent e)
        {
            this.Id          = e.Reader.ReadUInt32();
            this.HasPhysics  = e.Reader.ReadBoolean();
            this.IsKinematic = e.Reader.ReadBoolean();

            this.InitVelocity = e.Reader.ReadSerializable <UMVector3>();
        }
Exemplo n.º 5
0
 public void Deserialize(DeserializeEvent e)
 {
     PlayerID = e.Reader.ReadUInt16();
     entityID = e.Reader.ReadUInt16();
     position = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
     rotation = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
     isAI     = e.Reader.ReadBoolean();
 }
Exemplo n.º 6
0
        public void Deserialize(DeserializeEvent e)
        {
            bulletId       = e.Reader.ReadUInt16();
            BulletEntityID = e.Reader.ReadUInt16();
            WeaponEntityID = e.Reader.ReadUInt16();
            ownerPlayerID  = e.Reader.ReadUInt16();


            Origin     = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
            Velocity   = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
            UseGravity = e.Reader.ReadBoolean();
        }
Exemplo n.º 7
0
 public void Deserialize(DeserializeEvent e)
 {
     this.type             = (ProceduralEntityType)e.Reader.ReadInt32();
     this.position         = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
     this.rotation         = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
     this.scale            = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
     this.NrBuildingPoints = e.Reader.ReadInt32();
     this.buildingPoints   = new UMVector3[this.NrBuildingPoints];
     for (int i = 0; i < this.NrBuildingPoints; i++)
     {
         this.buildingPoints[i] = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
     }
 }
        public void Deserialize(DeserializeEvent e)
        {
            RequestID       = e.Reader.ReadUInt32();
            EntityId        = e.Reader.ReadUInt16();
            State           = e.Reader.ReadUInt16();
            hasPhysics      = e.Reader.ReadBoolean();
            WorldEntityUUID = e.Reader.ReadString();
            parentID        = e.Reader.ReadUInt32();

            position = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
            rotation = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());
            scale    = new UMVector3(e.Reader.ReadSingle(), e.Reader.ReadSingle(), e.Reader.ReadSingle());

            components = e.Reader.ReadSerializables <UMComponentDTO>();
        }