Example #1
0
 internal W3dTankDraw(W3dTankDrawModuleData data, GameObject gameObject, GameContext context)
     : base(data, gameObject, context)
 {
     _data             = data;
     _treadDebrisLeft  = data.TreadDebrisLeft?.Value ?? context.AssetLoadContext.AssetStore.FXParticleSystemTemplates.GetByName("TrackDebrisDirtLeft");
     _treadDebrisRight = data.TreadDebrisRight?.Value ?? context.AssetLoadContext.AssetStore.FXParticleSystemTemplates.GetByName("TrackDebrisDirtRight");
 }
Example #2
0
        internal W3dTankDraw(W3dTankDrawModuleData data, Drawable drawable, GameContext context)
            : base(data, drawable, context)
        {
            _data             = data;
            _treadDebrisLeft  = data.TreadDebrisLeft?.Value ?? context.AssetLoadContext.AssetStore.FXParticleSystemTemplates.GetByName("TrackDebrisDirtLeft");
            _treadDebrisRight = data.TreadDebrisRight?.Value ?? context.AssetLoadContext.AssetStore.FXParticleSystemTemplates.GetByName("TrackDebrisDirtRight");

            _turretBone = FindBoneInstance("Turret");
            _hasTurret  = _turretBone != null;
            _barrelBone = FindBoneInstance("Barrel01");
            _hasBarrel  = _barrelBone != null;
        }