コード例 #1
0
 public DistrictHandler(SocketRequestHandler handler) :
     base(handler, "District")
 {
     server.dailyCallbacks.Register(Update);
     handler.RegisterMessageHandler("District", OnDistrictMessage);
     SendAll();
 }
コード例 #2
0
 public InstancesHandler(SocketRequestHandler handler) :
     base(handler, "Instances")
 {
     server.dailyCallbacks.Register(Update);
     handler.RegisterMessageHandler("Instances", OnClientMessage);
     SendAll();
 }
コード例 #3
0
 public CameraHandler(SocketRequestHandler handler) :
     base(handler, "Camera")
 {
     totalTimeDelta = 0;
     updateInterval = 0;             //seconds (0=disable)
     server.frameCallbacks.Register(Update);
     handler.RegisterMessageHandler("Camera", OnCameraMessage);
 }
コード例 #4
0
 public BudgetHandler(SocketRequestHandler handler) :
     base(handler, "Budget")
 {
     economyManager = EconomyManager.instance;
     server.dailyCallbacks.Register(Update);
     SendAll();
     handler.RegisterMessageHandler("Budget", OnClientMessage);
 }
コード例 #5
0
 public CitizenHandler(SocketRequestHandler handler) :
     base(handler, "Citizen")
 {
     handler.RegisterMessageHandler("Citizen", OnClientMessage);
 }
コード例 #6
0
 public BuildingHandler(SocketRequestHandler handler) :
     base(handler, "Building")
 {
     //SendAll();
     handler.RegisterMessageHandler("Building", OnClientMessage);
 }
コード例 #7
0
 public TransportHandler(SocketRequestHandler handler) :
     base(handler, "Transport")
 {
     handler.RegisterMessageHandler("Transport", OnClientMessage);
 }
コード例 #8
0
 public ReflectionHandler(SocketRequestHandler handler) :
     base(handler, "Reflection")
 {
     handler.RegisterMessageHandler("Reflection", OnClientMessage);
 }
コード例 #9
0
 public VehicleHandler(SocketRequestHandler handler) :
     base(handler, "Vehicle")
 {
     handler.RegisterMessageHandler("Vehicle", OnClientMessage);
 }