Esempio n. 1
0
        internal static MapRangeTarget CreateNew(LevelManager level, Map map, Vector3 position)
        {
            var mapTarget = new MapRangeTarget(level, map, position);

            level.RegisterRangeTarget(mapTarget);
            return(mapTarget);
        }
Esempio n. 2
0
        internal static MapRangeTarget Load(LevelManager level, Map map, StMapTarget storedMapTarget)
        {
            var newTarget =
                new MapRangeTarget(level, map, storedMapTarget.Position.ToVector3())
            {
                InstanceID = storedMapTarget.InstanceID
            };

            level.LoadRangeTarget(newTarget);
            return(newTarget);
        }