Пример #1
0
        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;
            }
        }
Пример #2
0
        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;
            }
        }