RealmGateAddressComponent.cs 342 B

12345678910111213141516
  1. using System.Collections.Generic;
  2. using Base;
  3. namespace Model
  4. {
  5. public class RealmGateAddressComponent : Component
  6. {
  7. public readonly List<StartConfig> GateAddress = new List<StartConfig>();
  8. public StartConfig GetAddress()
  9. {
  10. int n = RandomHelper.RandomNumber(0, this.GateAddress.Count);
  11. return this.GateAddress[n];
  12. }
  13. }
  14. }