public DistrictHandler(SocketRequestHandler handler) : base(handler, "District") { server.dailyCallbacks.Register(Update); handler.RegisterMessageHandler("District", OnDistrictMessage); SendAll(); }
public InstancesHandler(SocketRequestHandler handler) : base(handler, "Instances") { server.dailyCallbacks.Register(Update); handler.RegisterMessageHandler("Instances", OnClientMessage); SendAll(); }
public CameraHandler(SocketRequestHandler handler) : base(handler, "Camera") { totalTimeDelta = 0; updateInterval = 0; //seconds (0=disable) server.frameCallbacks.Register(Update); handler.RegisterMessageHandler("Camera", OnCameraMessage); }
public BudgetHandler(SocketRequestHandler handler) : base(handler, "Budget") { economyManager = EconomyManager.instance; server.dailyCallbacks.Register(Update); SendAll(); handler.RegisterMessageHandler("Budget", OnClientMessage); }
public CitizenHandler(SocketRequestHandler handler) : base(handler, "Citizen") { handler.RegisterMessageHandler("Citizen", OnClientMessage); }
public BuildingHandler(SocketRequestHandler handler) : base(handler, "Building") { //SendAll(); handler.RegisterMessageHandler("Building", OnClientMessage); }
public TransportHandler(SocketRequestHandler handler) : base(handler, "Transport") { handler.RegisterMessageHandler("Transport", OnClientMessage); }
public ReflectionHandler(SocketRequestHandler handler) : base(handler, "Reflection") { handler.RegisterMessageHandler("Reflection", OnClientMessage); }
public VehicleHandler(SocketRequestHandler handler) : base(handler, "Vehicle") { handler.RegisterMessageHandler("Vehicle", OnClientMessage); }