PassGateEventArgs.cs 839 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. namespace GameWorld
  3. {
  4. public class PassGateEventArgs : EventArgs
  5. {
  6. public PassGateEventArgs(PassGateEventArgs.PassGateStatus status, SwitchLevelGateData data, string mySceneName) : this(status, data.ToLevelId, data.ToId, mySceneName, data.MyId)
  7. {
  8. }
  9. public PassGateEventArgs(PassGateEventArgs.PassGateStatus status, string toSceneName, int toId, string mySceneName, int myId)
  10. {
  11. this.Status = status;
  12. this.ToSceneName = toSceneName;
  13. this.ToId = toId;
  14. this.MySceneName = mySceneName;
  15. this.MyId = myId;
  16. }
  17. public readonly PassGateEventArgs.PassGateStatus Status;
  18. public readonly string ToSceneName;
  19. public readonly int ToId;
  20. public readonly string MySceneName;
  21. public readonly int MyId;
  22. public enum PassGateStatus
  23. {
  24. Enter,
  25. Exit
  26. }
  27. }
  28. }