RealmGateAddressComponent.cs 332 B

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