Esempio n. 1
0
 public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader)
 {
     System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader));
     this.Name = binaryReader.ReadString32();
     this.CombatStatusDecayOptions = ((CombatStatusDecayOptionsEnum)(binaryReader.ReadInt16()));
     this.fieldpad          = binaryReader.ReadBytes(2);
     this.Attitude          = ((AttitudeEnum)(binaryReader.ReadInt16()));
     this.fieldpad0         = binaryReader.ReadBytes(2);
     this.EngageAttitude    = ((EngageAttitudeEnum)(binaryReader.ReadByte()));
     this.EvasionAttitude   = ((EvasionAttitudeEnum)(binaryReader.ReadByte()));
     this.CoverAttitude     = ((CoverAttitudeEnum)(binaryReader.ReadByte()));
     this.SearchAttitude    = ((SearchAttitudeEnum)(binaryReader.ReadByte()));
     this.PresearchAttitude = ((PresearchAttitudeEnum)(binaryReader.ReadByte()));
     this.RetreatAttitude   = ((RetreatAttitudeEnum)(binaryReader.ReadByte()));
     this.ChargeAttitude    = ((ChargeAttitudeEnum)(binaryReader.ReadByte()));
     this.ReadyAttitude     = ((ReadyAttitudeEnum)(binaryReader.ReadByte()));
     this.IdleAttitude      = ((IdleAttitudeEnum)(binaryReader.ReadByte()));
     this.WeaponAttitude    = ((WeaponAttitudeEnum)(binaryReader.ReadByte()));
     this.SwarmAttitude     = ((SwarmAttitudeEnum)(binaryReader.ReadByte()));
     this.fieldpad1         = binaryReader.ReadBytes(1);
     this.StyleStyleControl = ((StyleControl)(binaryReader.ReadInt32()));
     this.StyleBehaviors1   = ((Behaviors1)(binaryReader.ReadInt32()));
     this.StyleBehaviors2   = ((Behaviors2)(binaryReader.ReadInt32()));
     this.StyleBehaviors3   = ((Behaviors3)(binaryReader.ReadInt32()));
     this.StyleBehaviors4   = ((Behaviors4)(binaryReader.ReadInt32()));
     this.StyleBehaviors5   = ((Behaviors5)(binaryReader.ReadInt32()));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(4));
     pointerQueue.Enqueue(binaryReader.ReadBlamPointer(32));
     return(pointerQueue);
 }
Esempio n. 2
0
    void ChangeBehavior(Behaviors1 newBehavior)
    {
        aiBehaviors = newBehavior;

        RunBehaviors();
    }