Example #1
0
        private WorldObjectRenderInfo GetRenderInfo(WorldComponent component)
        {
            if (RenderInfo.ContainsKey(component))
            {
                return(RenderInfo[component]);
            }
            var info = new WorldObjectRenderInfo();

            RenderInfo[component] = info;
            return(info);
        }
        private WorldObjectRenderInfo GetRenderInfo(WorldComponent component)
        {
            return(((ObjectComponent)component).renderInfo);

            /*if (RenderInfo.ContainsKey(component))
             * {
             *  return RenderInfo[component];
             * }
             * var info = new WorldObjectRenderInfo();
             * RenderInfo[component] = info;
             * return info;*/
        }
Example #3
0
 private WorldObjectRenderInfo GetRenderInfo(WorldComponent component)
 {
     return ((ObjectComponent)component).renderInfo;
 }
 private void InitWorldComponent(WorldComponent component)
 {
     component.Initialize(this.World.State.Device, this.World.State);
 }
Example #5
0
 private WorldObjectRenderInfo GetRenderInfo(WorldComponent component)
 {
     if (RenderInfo.ContainsKey(component))
     {
         return RenderInfo[component];
     }
     var info = new WorldObjectRenderInfo();
     RenderInfo[component] = info;
     return info;
 }