Ejemplo n.º 1
0
    public void AddBehavior(BehaviorDef behavior)
    {
        List <BehaviorDef> newBehaviors = new List <BehaviorDef>(behaviors);

        newBehaviors.Add(behavior);
        behaviors = newBehaviors.ToArray();
    }
Ejemplo n.º 2
0
            public _ InitMany(short objTypeMin, short objTypeMax, BehaviorDef b)
            {
                int count = objTypeMax - objTypeMin;

                for (int i = 0; i <= count; i++)
                {
                    Behaviors.Add((short)(objTypeMin + i), b);
                }
                return(this);
            }
Ejemplo n.º 3
0
 public _ Init(short objType, BehaviorDef b)
 {
     try
     {
         Behaviors.Add(objType, b);
         return(this);
     }
     catch
     {
         Console.WriteLine("Behavior Error" + objType);
     }
     return(this);
 }
Ejemplo n.º 4
0
 public _ Init(short objType, BehaviorDef b)
 {
     try
     {
         Behaviors.Add(objType, b);
         return this;
     }
     catch
     {
         Logger.Error($"Behavior error for \"0x{objType:x4}\"");
     }
     return this;
 }
Ejemplo n.º 5
0
 public _ Init(short objType, BehaviorDef b)
 {
     try
     {
         Behaviors.Add(objType, b);
         return this;
     }
     catch
     {
         Console.WriteLine("Behavior Error" + objType.ToString());
     }
     return this;
 }
Ejemplo n.º 6
0
 public _ Init(short objType, BehaviorDef b)
 {
     Behaviors.Add(objType, b);
     return(this);
 }
Ejemplo n.º 7
0
 public _ Init(short objType, BehaviorDef b)
 {
     Behaviors.Add(objType, b);
     return this;
 }
Ejemplo n.º 8
0
 public void AddBehavior(BehaviorDef behavior)
 {
     List<BehaviorDef> newBehaviors = new List<BehaviorDef>(behaviors);
     newBehaviors.Add(behavior);
     behaviors = newBehaviors.ToArray();
 }