private void processAnimAssetTag(visualModelAnimAssetTag tag, VisContainer container, string filename) { switch (tag.type) { case visualModelAnimAssetTag.TagType.Light: container.addLight(tag.name, filename); break; case visualModelAnimAssetTag.TagType.Particle: container.addParticle(tag.name, filename); break; case visualModelAnimAssetTag.TagType.TerrainEffect: container.addTerrainEffect(tag.name, filename); break; case visualModelAnimAssetTag.TagType.BuildingDecal: container.addDecalTexture(tag.name, filename); break; } }
private void processComponentAsset(visualModelComponentAsset asset, VisContainer container, string filename) { switch (asset.type) { case visualModelComponentAsset.ComponentAssetType.Light: container.addLight(asset.file, filename); break; case visualModelComponentAsset.ComponentAssetType.Model: container.addModel(asset.file, filename); if (!String.IsNullOrEmpty(asset.damagefile)) { container.addDamage(asset.damagefile, filename); } break; case visualModelComponentAsset.ComponentAssetType.Particle: container.addParticle(asset.file, filename); break; } }
private void processComponentOrAnimAttach(visualModelComponentOrAnimAttach attach, VisContainer container, string filename) { switch (attach.type) { case visualModelComponentOrAnimAttach.AttachType.LightFile: container.addLight(attach.name, filename); break; case visualModelComponentOrAnimAttach.AttachType.ModelFile: container.addModel(attach.name, filename); break; case visualModelComponentOrAnimAttach.AttachType.ModelRef: break; case visualModelComponentOrAnimAttach.AttachType.ParticleFile: container.addParticle(attach.name, filename); break; case visualModelComponentOrAnimAttach.AttachType.TerrainEffect: container.addTerrainEffect(attach.name, filename); break; } }