RealmGateAddressComponent.cs 398 B

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