Config.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 string USER_PORT = USER_PORT_CHINA;
  17. // public static bool USE_LOCAL_SERVER = true;
  18. public static bool USE_LOCAL_SERVER = false;
  19. // public static string LOCAL_SERVER_ADDRESS = "192.168.1.52";
  20. public static string LOCAL_SERVER_ADDRESS = "127.0.0.1";
  21. public static string SERVER_ADDRESS = "121.199.20.79";
  22. // public static string SERVER_ADDRESS = "127.0.0.1";
  23. // public static string SERVER_ADDRESS = "192.168.1.102";
  24. // public static string SERVER_ADDRESS = "139.219.184.31";
  25. public static string URL_ADDRESS = "http://121.199.20.79/battlearray/";
  26. // public static string SERVER_ADDRESS = "47.90.201.47";
  27. // public static string URL_ADDRESS = "http://47.90.201.47/";
  28. public static int SERVER_PORT = 9933;
  29. public static string ZONE = "BattleArray_1_2_5";
  30. public static string LOBBY_ROOM_NAME = "Lobby";
  31. public static string CLAN_ROOM_PREFIX = "Clan";
  32. public static string VERSION = "1.2.5";
  33. public static string VERSION_LABEL = "1_2_5";
  34. public static int MAX_USER_NAME_LENGTH = 20;
  35. public static int MAX_ARRAY_NAME_LENGTH = 20;
  36. public static int MAX_ARRAY_DESC_LENGTH = 140;
  37. public static int MAX_CHAT_LENGTH = 100;
  38. public static string MAP_SAVE_FOLDER = Application.dataPath+"/Resources/Maps/";
  39. public static string MAP_LOAD_FOLDER = "Maps/";
  40. public static string SOUND_PREFAB_FOLDER = "Prefabs/Sounds/";
  41. public static string MINI_CRAFT_PREFAB = "Prefabs/UI/MiniCraft";
  42. public static string MOVE_MARK_PREFAB = "Prefabs/Effects/MoveMark";
  43. public static string MAP_OBJECT_FOLDER = "Prefabs/MapObject/";
  44. public static string START_FLAG_PREFAB = "Prefabs/Flags/StartFlag";
  45. public static string DOOR_PREFAB = "Prefabs/Buildings/Door";
  46. public static string BLOCK_PREFAB = "Prefabs/Buildings/Block";
  47. public static string CRYSTAL_BASE_PREFAB = "Prefabs/Buildings/Crystal";
  48. public static string FLAG_BASE_PREFAB = "Prefabs/Buildings/FlagBase";
  49. public static string FLAG_PREFAB = "Prefabs/Item/FlagItem";
  50. public static string BIGGER_ITEM_PREFAB = "Prefabs/Item/BiggerItem";
  51. public static string STATION_PREFAB = "Prefabs/Buildings/Station";
  52. public static string ITEM_POS_PREFAB = "Prefabs/Buildings/ItemPos";
  53. public static string START_POS_PREFAB = "Prefabs/Buildings/StartPos";
  54. public static string CAPSULE_PREFAB = "Prefabs/Utils/Capsule";
  55. public static string CRAFT_PREFAB_FOLDER = "Prefabs/Crafts/";
  56. public static string CRAFT_NEW_PREFAB_FOLDER = "Prefabs/CraftsNew/";
  57. public static string BULLET_PREFAB_FOLDER = "Prefabs/Bullets/";
  58. public static string EFFECT_PREFAB_FOLDER = "Prefabs/Effects/";
  59. public static string HEAD_BAR_PREFAB = "Prefabs/UI/Battle/HeadBar";
  60. public static string TEAM_SIDE_BAR_PREFAB = "Prefabs/UI/TeamSideBarContainer";
  61. public static string SHADOW_MATERIAL = "Materials/Shadow";
  62. }