Exemplo n.º 1
0
 public override void OnNewFrameDraw2d(Game game, float deltaTime)
 {
     if (d_CraftingTableTool == null)
     {
         d_CraftingTableTool        = new CraftingTableTool();
         d_CraftingTableTool.d_Map  = MapStorage2.Create(game);
         d_CraftingTableTool.d_Data = game.d_Data;
     }
     game.packetHandlers[Packet_ServerIdEnum.CraftingRecipes] = handler;
     if (game.guistate != GuiState.CraftingRecipes)
     {
         return;
     }
     DrawCraftingRecipes(game);
 }
Exemplo n.º 2
0
 public override void OnNewFrameDraw2d(Game game, float deltaTime)
 {
     if (d_CraftingTableTool == null)
     {
         d_CraftingTableTool = new CraftingTableTool();
         d_CraftingTableTool.d_Map = MapStorage2.Create(game);
         d_CraftingTableTool.d_Data = game.d_Data;
     }
     game.packetHandlers[Packet_ServerIdEnum.CraftingRecipes] = handler;
     if (game.guistate != GuiState.CraftingRecipes)
     {
         return;
     }
     DrawCraftingRecipes(game);
 }