Example #1
0
        public static void Remove(Interface.Struct.GameObjectID obj)
        {
            GameObject.ObjectID id = new GameObject.ObjectID(obj);

            for (int i = 0; i < AllGameObjects.Count; i++)
            {
                if (AllGameObjects[i].ID == id)
                {
                    Out.Log(Significance.Low, "Removed game object " + id);
                    AllGameObjects.RemoveAt(i);
                    return;
                }
            }
            Out.Log(Significance.Unusual, "Unable to locate game object '" + id + "'");
        }
Example #2
0
 public ObjectID(Interface.Struct.GameObjectID id) : this()
 {
     Location = new Technite.CompressedLocation(id.location).CellID;
     IsGhost  = id.isGhost;
     Type     = id.type;
 }