public static string MapWorldState(GameWorld.eState state) { switch (state) { case GameWorld.eState.Smooth: case GameWorld.eState.Busy: case GameWorld.eState.Hot: return(EB.Localizer.GetString("ID_SERVER_STATE_HUOBAO")); case GameWorld.eState.Down: return(EB.Localizer.GetString("ID_SERVER_STATE_WEIHU")); case GameWorld.eState.New: return(EB.Localizer.GetString("ID_SERVER_STATE_XINQU")); default: return(EB.Localizer.GetString("ID_SERVER_STATE_HUOBAO")); } }
public static string MapWorldFlag(GameWorld.eState state) { switch (state) { case GameWorld.eState.Smooth: return("Ty_Flag_2"); case GameWorld.eState.Busy: return("Ty_Flag_1"); case GameWorld.eState.Hot: return("Ty_Flag_1"); case GameWorld.eState.Down: return("Ty_Flag_3"); case GameWorld.eState.New: return("Ty_Flag_2"); default: return("Ty_Flag_2"); } }
public static Color MapWorldColor(GameWorld.eState state) { switch (state) { case GameWorld.eState.Smooth: return(RedColor); case GameWorld.eState.Busy: return(RedColor); case GameWorld.eState.Hot: return(RedColor); case GameWorld.eState.Down: return(Color.white); case GameWorld.eState.New: return(GreenColor); default: return(RedColor); } }