// 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"); }
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); }
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>(); }
public GameSetDialogParameter() : base(typeof(Ffb.Dto.ModelChanges.GameSetDialogParameter)) { HandlerFactory = new ReflectedFactory <DialogHandler <Ffb.Dto.FfbDialog>, Type>(); }
private void Awake() { LogTextFactory = new ReflectedFactory <LogTextGenerator <Report>, Type>(); }
public Networking() { NetCommandFactory = new ReflectedFactory <NetCommand, string>(); }