Advertisement
Guest User

Untitled

a guest
Jun 13th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.92 KB | None | 0 0
  1.     public sealed class CMatch : Contract<CMatch> {
  2.         [Output] public CMap Map { get; private set; }
  3.  
  4.         [Input] public readonly ReactiveCommand            Start = new ReactiveCommand();
  5.         [Input] public readonly ReactiveCommand            Leave = new ReactiveCommand();
  6.         [Input] public readonly ReactiveProperty<TimeSpan> Timer = new ReactiveProperty<TimeSpan>();
  7.  
  8.         [Output] public readonly ReactiveProperty<int>        PlayerId  = new ReactiveProperty<int>();
  9.         [Output] public readonly ReactiveProperty<MatchState> State     = new ReactiveProperty<MatchState>();
  10.         [Output] public readonly ReactiveProperty<MatchMode>  MatchMode = new ReactiveProperty<MatchMode>();
  11.         [Output] public readonly ReactiveProperty<GameMode>   GameMode  = new ReactiveProperty<GameMode>();
  12.  
  13.         protected override void Initialize() {
  14.             this.Map = this.GetSub<CMap>();
  15.         }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement