Exemplo n.º 1
0
        /// <summary>
        ///     Constructor
        /// </summary>
        /// <param name="obj"></param>
        public NewDawnBattlefieldObjective(Battlefront_Objective obj, int Tier)
        {
            Id     = obj.Entry;
            Name   = obj.Name;
            ZoneId = obj.ZoneId;
            _tier  = (byte)Tier;

            _x            = (uint)obj.X;
            _y            = (uint)obj.Y;
            _z            = (ushort)obj.Z;
            _o            = (ushort)obj.O;
            _tokdiscovery = obj.TokDiscovered;
            _tokunlocked  = obj.TokUnlocked;

            Heading         = _o;
            WorldPosition.X = (int)_x;
            WorldPosition.Y = (int)_y;
            WorldPosition.Z = _z;

            CommsEngine = new NewDawnCommunications();

            ProximityEngine = new ProximityEngine();

            RewardManager = new RVRRewardManager();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor to assist in isolation testing.
 /// </summary>
 public NewDawnBattlefieldObjective()
 {
     CommsEngine     = new NewDawnCommunications();
     ProximityEngine = new ProximityEngine();
     RewardManager   = new RVRRewardManager();
 }