示例#1
0
 public GRMap3D(string id, GRWorld3D world)
 {
     this.m_conf                 = null;
     this.m_id                   = id;
     this.m_world                = world;
     this.m_mapContainer         = this.m_world.scene3d.createContainer3D();
     this.m_mapContainer.visible = false;
 }
示例#2
0
        public GRWorld3D getWorld3D(string id)
        {
            GRWorld3D result = null;
            bool      flag   = this.m_worlds.ContainsKey(id);

            if (flag)
            {
                result = this.m_worlds[id];
            }
            return(result);
        }
示例#3
0
 public GRLightDir3D(string id, GRWorld3D world) : base(id, world)
 {
     this.m_light           = this.m_world.scene3d.createLightDir();
     this.m_lightDir        = (this.m_light as ILightDir);
     this.m_light.enabled   = this.m_enabled;
     this.m_light.color     = this.m_color;
     this.m_light.intensity = this.m_intensity;
     this.m_light.shadow    = this.m_shadow;
     this.m_light.layer     = this.m_layer;
     this.m_light.enabled   = true;
     this.m_rootObj.addChild(this.m_light);
 }
示例#4
0
        public void dispose()
        {
            bool flag = this.m_entity != null;

            if (flag)
            {
                this.m_world.deleteEntity(this.m_entity);
            }
            this.m_asset    = null;
            this.m_part     = null;
            this.m_mountTo  = null;
            this.m_attachTo = null;
            this.m_obj      = null;
            this.m_mtrl     = null;
            this.m_world    = null;
        }
示例#5
0
        public GRWorld3D createWorld3D(string id)
        {
            bool      flag = this.m_worlds.ContainsKey(id);
            GRWorld3D result;

            if (flag)
            {
                result = this.m_worlds[id];
            }
            else
            {
                GRWorld3D gRWorld3D = new GRWorld3D(id, this);
                this.m_worlds[id] = gRWorld3D;
                result            = gRWorld3D;
            }
            return(result);
        }
示例#6
0
 public GREffectParticles3D(string id, GRWorld3D world) : base(id, world)
 {
     this.m_effect = world.scene3d.createEffectParticles();
     this.m_rootObj.addChild(this.m_effect);
 }
示例#7
0
 public GRBillboard(string id, GRWorld3D world) : base(id, world)
 {
 }
示例#8
0
 public GREffectKnifeLight3D(string id, GRWorld3D world) : base(id, world)
 {
     this.m_effect = world.scene3d.createEffectKnifeLight();
     this.m_rootObj.addChild(this.m_effect);
 }
示例#9
0
 public GRAvatarPart3D(GRWorld3D world = null)
 {
     this.m_world = world;
 }
示例#10
0
 public GRCamera3D(string id, GRWorld3D world) : base(id, world)
 {
     this.m_cam = this.m_world.scene3d.createCamera();
     this.m_rootObj.addChild(this.m_cam);
 }
示例#11
0
 public GREntity3D(string id, GRWorld3D world)
 {
     this.m_world   = world;
     this.m_id      = id;
     this.m_rootObj = this.m_world.scene3d.createContainer3D();
 }
示例#12
0
 public GRStaticMesh3D(string id, GRWorld3D world) : base(id, world)
 {
 }
示例#13
0
 public GRLight3D(string id, GRWorld3D world) : base(id, world)
 {
 }