Beispiel #1
0
        public void Deserialize(YodaReader stream)
        {
            int n;
            stream.ExpectAtCurrentPos("IACT");
            stream.ReadN(4);
            stream.ReadLong(); // length
            n = stream.ReadShort();
            this.Conditions = stream.ReadObjectArray<ScriptCondition>(n);

            n = stream.ReadShort();
            this.Actions = stream.ReadObjectArray<ScriptAction>(n);
        }
Beispiel #2
0
 public void Deserialize(YodaReader stream)
 {
     this.EntityId = stream.ReadShort();
     this.X = stream.ReadShort();
     this.Y = stream.ReadShort();
     this.Item = stream.ReadShort();
     this.NumItems = stream.ReadShort();
     this.Unk3 = stream.ReadShort();
     this.UnkTail = stream.ReadN(2 * 0x10);
 }