Config.cs 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. using System;
  2. using UnityEngine;
  3. public class Config
  4. {
  5. public enum Scene
  6. {
  7. // Start,
  8. // Main,
  9. Battle,
  10. // Show,
  11. }
  12. //server port for china is empty string, for international is intl
  13. public const string USER_PORT_CHINA = "";
  14. public const string USER_PORT_INTERNATIONAL = "intl";
  15. public static string USER_PORT = USER_PORT_INTERNATIONAL;
  16. // public static bool USE_LOCAL_SERVER = true;
  17. public static bool USE_LOCAL_SERVER = false;
  18. // public static string LOCAL_SERVER_ADDRESS = "192.168.1.52";
  19. public static string LOCAL_SERVER_ADDRESS = "127.0.0.1";
  20. // public static string SERVER_ADDRESS = "121.199.20.79";
  21. // public static string SERVER_ADDRESS = "127.0.0.1";
  22. // public static string SERVER_ADDRESS = "192.168.1.102";
  23. public static string SERVER_ADDRESS = "45.76.11.200";
  24. public static string URL_ADDRESS = "http://121.199.20.79/battlearray/";
  25. // public static string SERVER_ADDRESS = "47.90.201.47";
  26. // public static string URL_ADDRESS = "http://47.90.201.47/";
  27. public static int SERVER_PORT = 9933;
  28. public static string ZONE = "BattleArray_1_2_5";
  29. public static string LOBBY_ROOM_NAME = "Lobby";
  30. public static string CLAN_ROOM_PREFIX = "Clan";
  31. public static string VERSION = "1.2.5";
  32. public static string VERSION_LABEL = "1_2_5";
  33. public static int MAX_USER_NAME_LENGTH = 20;
  34. public static int MAX_ARRAY_NAME_LENGTH = 20;
  35. public static int MAX_ARRAY_DESC_LENGTH = 140;
  36. public static int MAX_CHAT_LENGTH = 100;
  37. public static string MAP_SAVE_FOLDER = Application.dataPath+"/Resources/Maps/";
  38. public static string MAP_LOAD_FOLDER = "Maps/";
  39. public static string SOUND_PREFAB_FOLDER = "Prefabs/Sounds/";
  40. public static string MINI_CRAFT_PREFAB = "Prefabs/UI/MiniCraft";
  41. public static string MOVE_MARK_PREFAB = "Prefabs/Effects/MoveMark";
  42. public static string MAP_OBJECT_FOLDER = "Prefabs/MapObject/";
  43. public static string START_FLAG_PREFAB = "Prefabs/Flags/StartFlag";
  44. public static string DOOR_PREFAB = "Prefabs/Buildings/Door";
  45. public static string BLOCK_PREFAB = "Prefabs/Buildings/Block";
  46. public static string CRYSTAL_BASE_PREFAB = "Prefabs/Buildings/Crystal";
  47. public static string FLAG_BASE_PREFAB = "Prefabs/Buildings/FlagBase";
  48. public static string FLAG_PREFAB = "Prefabs/Item/FlagItem";
  49. public static string BIGGER_ITEM_PREFAB = "Prefabs/Item/BiggerItem";
  50. public static string STATION_PREFAB = "Prefabs/Buildings/Station";
  51. public static string ITEM_POS_PREFAB = "Prefabs/Buildings/ItemPos";
  52. public static string START_POS_PREFAB = "Prefabs/Buildings/StartPos";
  53. public static string CAPSULE_PREFAB = "Prefabs/Utils/Capsule";
  54. public static string CRAFT_PREFAB_FOLDER = "Prefabs/Crafts/";
  55. public static string CRAFT_NEW_PREFAB_FOLDER = "Prefabs/CraftsNew/";
  56. public static string BULLET_PREFAB_FOLDER = "Prefabs/Bullets/";
  57. public static string EFFECT_PREFAB_FOLDER = "Prefabs/Effects/";
  58. public static string HEAD_BAR_PREFAB = "Prefabs/UI/Battle/HeadBar";
  59. public static string TEAM_SIDE_BAR_PREFAB = "Prefabs/UI/TeamSideBarContainer";
  60. public static string SHADOW_MATERIAL = "Materials/Shadow";
  61. }