Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        LogTextFactory         = new ReflectedFactory <LogTextGenerator <Report>, Type>();
        FFB.Instance.OnReport += AddReport;
        FFB.Instance.OnChat   += AddChat;

        var root = GetComponent <UIDocument>().rootVisualElement;

        logScroll  = root.Q <ScrollView>("logScroll");
        chatScroll = root.Q <ScrollView>("chatScroll");
    }
Esempio n. 2
0
 public Core()
 {
     //ModelChangeFactory = new ModelChangeFactory();
     ModelChangeFactory = new ReflectedFactory <ModelUpdater <Ffb.Dto.ModelChange>, Type>();
     ActingPlayer       = new ActingPlayer();
     PlayerStore        = new PlayerStore();
     Ball              = new Ball();
     BlockDice         = new List <View.BlockDie>();
     Positions         = new Dictionary <string, Position>();
     SquareInformation = new SquareInformation(26, 15);
 }
Esempio n. 3
0
 public Core()
 {
     //ModelChangeFactory = new ModelChangeFactory();
     ModelChangeFactory = new ReflectedFactory <ModelUpdater <Ffb.Dto.ModelChange>, Type>();
     ActingPlayer       = new ActingPlayer();
     Players            = new Dictionary <string, Player>();
     Ball            = new Ball();
     PushbackSquares = new Dictionary <int, View.PushbackSquare>();
     TrackNumbers    = new Dictionary <int, View.TrackNumber>();
     BlockDice       = new List <View.BlockDie>();
     Positions       = new Dictionary <string, Position>();
 }
Esempio n. 4
0
 public GameSetDialogParameter() : base(typeof(Ffb.Dto.ModelChanges.GameSetDialogParameter))
 {
     HandlerFactory = new ReflectedFactory <DialogHandler <Ffb.Dto.FfbDialog>, Type>();
 }
Esempio n. 5
0
 private void Awake()
 {
     LogTextFactory = new ReflectedFactory <LogTextGenerator <Report>, Type>();
 }
Esempio n. 6
0
 public Networking()
 {
     NetCommandFactory = new ReflectedFactory <NetCommand, string>();
 }