Load() public method

public Load ( Vector3 basicOffset, bool forceResetCache = false ) : void
basicOffset Vector3
forceResetCache bool
return void
Beispiel #1
0
 private Map ActivateMap(string id, Vector3 position)
 {
     Map existingMap;
     if (_allMaps.TryGetValue(id, out existingMap))
     {
         existingMap.Activate();
         return existingMap;
     }
     else
     {
         var map = new Map(this, id);
         map.Load(position);
         _allMaps.Add(id, map);
         return map;
     }
 }
Beispiel #2
0
        private Map ActivateMap(string id, Vector3 position)
        {
            Map existingMap;

            if (_allMaps.TryGetValue(id, out existingMap))
            {
                existingMap.Activate();
                return(existingMap);
            }
            else
            {
                var map = new Map(this, id);
                map.Load(position);
                _allMaps.Add(id, map);
                return(map);
            }
        }