GlobalProto.cs 660 B

1234567891011121314151617181920212223242526272829303132
  1. using MongoDB.Bson.Serialization.Attributes;
  2. namespace Base
  3. {
  4. public enum AssetUrlEnum
  5. {
  6. Local,
  7. Remote,
  8. RemoteAliWeb
  9. }
  10. public enum ConfigPathEnum
  11. {
  12. Editor,
  13. Launcher,
  14. Release,
  15. }
  16. [BsonIgnoreExtraElements]
  17. public class GlobalProto: AConfig
  18. {
  19. public NetworkProtocol Protocol = NetworkProtocol.TCP;
  20. public string AssetBundleServerUrl = "http://192.168.11.200/";
  21. public AssetUrlEnum AssetUrlType = AssetUrlEnum.Remote;
  22. public string Host = "192.168.11.200";
  23. public ushort Port = 22222;
  24. public string AssetBundleName = "global";
  25. [BsonDefaultValue(false)]
  26. public bool IsEnglishEdition = false;
  27. }
  28. }