public EntityViewModel(EntityModel entity, WorldNavigation navigation)
        {
            Contract.Requires<ArgumentNullException>(entity != null);
            Contract.Requires<ArgumentNullException>(navigation != null);

            _entity = entity;
            _entityNavigation = navigation;
        }
Example #2
0
        public EntityViewModel(EntityModel entity, WorldNavigation navigation)
        {
            Contract.Requires <ArgumentNullException>(entity != null);
            Contract.Requires <ArgumentNullException>(navigation != null);

            _entity           = entity;
            _entityNavigation = navigation;
        }
        public MissionViewModel(MissionModel mission, WorldNavigation navigation)
        {
            Contract.Requires<ArgumentNullException>(mission != null);
            Contract.Requires<ArgumentNullException>(navigation != null);

            _mission = mission;
            _entityNavigation = navigation;
        }
        public TaskViewModel(TaskModel task, WorldNavigation navigation, EntityModel doer)
        {
            Contract.Requires<ArgumentNullException>(task != null);
            Contract.Requires<ArgumentNullException>(navigation != null);

            _task = task;
            _doer = doer;
            _entityNavigation = navigation;
        }
Example #5
0
 public WorldViewModel(ServerConnection connection)
 {
     ServerConnection = connection;
     Bindings         = new InputBindings();
     Navigation       = new WorldNavigation();
 }
Example #6
0
 public WorldViewModel(ServerConnection connection)
 {
     ServerConnection = connection;
     Bindings = new InputBindings();
     Navigation = new WorldNavigation();
 }