Esempio n. 1
0
 public static SpaceActor TryCreateActor(uint uint_2, SpaceActorType Type, uint ReferenceId, object ReferenceObject, Vector3 Position, int Rotation, SpaceInstance Instance)
 {
     if (ReferenceObject == null)
     {
         return(null);
     }
     return(new SpaceActor(uint_2, Type, ReferenceId, ReferenceObject, Position, Rotation, Instance));
 }
Esempio n. 2
0
 public SpaceActor GetActorByReferenceId(uint ReferenceId, SpaceActorType ReferenceType)
 {
     foreach (SpaceActor actor in this.concurrentDictionary_0.Values)
     {
         if ((actor.Type == ReferenceType) && (actor.ReferenceId == ReferenceId))
         {
             return(actor);
         }
     }
     return(null);
 }
Esempio n. 3
0
 public SpaceActor(uint uint_2, SpaceActorType Type, uint ReferenceId, object ReferenceObject, Vector3 Position, int Rotation, SpaceInstance Instance)
 {
     this.uint_0           = uint_2;
     this.spaceActorType_0 = Type;
     this.uint_1           = ReferenceId;
     this.object_0         = ReferenceObject;
     this.vector3_0        = Position;
     this.vector3_1        = Position;
     this.int_0            = Rotation;
     this.bool_0           = false;
     this.bool_6           = false;
     this.bool_3           = false;
     this.bool_4           = false;
     this.dictionary_0     = new Dictionary <string, string>();
     this.spaceInstance_0  = Instance;
     this.bool_1           = true;
     this.object_1         = new object();
     this.pathfinder_0     = PathfinderManager.CreatePathfinderInstance();
     this.pathfinder_0.SetSpaceInstance(this.spaceInstance_0, uint_2);
     this.method_1(500);
     this.method_2(500);
 }