Esempio n. 1
0
        public static WorldObjectBase imbue(WorldObjectBase obj, IntVector3 gridPosition, World world)
        {
            var initialState = new MapLocationState();

            initialState.position = gridPosition;
            initialState.velocity = new Vector3(0, 0, 0);
            initialState.world    = world;

            obj[kMapLocationKey] = new MapLocationCause(initialState);
            return(obj);
        }
Esempio n. 2
0
 public static WorldObjectBase imbue(WorldObjectBase obj, MapLocationState initialState)
 {
     obj[kMapLocationKey] = new MapLocationCause(initialState);
     return(obj);
 }