Beispiel #1
0
        public ModuleModel(TankInstance tankInstance, Module module)
        {
            if (!(tankInstance.Repository is LocalGameClient))
            {
                throw new ArgumentException("tankInstance");
            }

            this.TankInstance = tankInstance;

            this.Camouflage = new CamouflageInfo(tankInstance, module);

            _module = module;
        }
Beispiel #2
0
        public TankModel(TankInstance tankInstance)
        {
            this.TankInstance = tankInstance;
            this.Camouflage   = new CamouflageInfo(tankInstance);

            this.LoadHullModel();
            this.LoadChassisModel();
            this.LoadTurretModel();
            this.LoadGunModel();

            this.TankInstance.TankConfiguration.TurretChanged  += TankConfiguration_TurretChanged;
            this.TankInstance.TankConfiguration.GunChanged     += TankConfiguration_GunChanged;
            this.TankInstance.TankConfiguration.ChassisChanged += TankConfiguration_ChassisChanged;
        }