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;*/ }
private WorldObjectRenderInfo GetRenderInfo(WorldComponent component) { return ((ObjectComponent)component).renderInfo; }
private void InitWorldComponent(WorldComponent component) { component.Initialize(this.World.State.Device, this.World.State); }
private WorldObjectRenderInfo GetRenderInfo(WorldComponent component) { if (RenderInfo.ContainsKey(component)) { return RenderInfo[component]; } var info = new WorldObjectRenderInfo(); RenderInfo[component] = info; return info; }