示例#1
0
 public AvatarRetireHandler(CityServerContext context, IDAFactory da, IDataService dataService, IKernel kernel)
 {
     Context     = context;
     DA          = da;
     DataService = dataService;
     Kernel      = kernel;
 }
示例#2
0
 public LotAllocations(LotServerPicker PickingEngine, IDAFactory daFactory, CityServerContext context, IKernel kernel)
 {
     this.PickingEngine = PickingEngine;
     DAFactory          = daFactory;
     Context            = context;
     Matchmaker         = kernel.Get <JobMatchmaker>();
 }
示例#3
0
 public JoinLotHandler(LotAllocations lots, LotServerPicker pickingEngine, IDAFactory da, CityServerContext context)
 {
     Lots          = lots;
     PickingEngine = pickingEngine;
     DAFactory     = da;
     Context       = context;
 }
示例#4
0
 public EventSystem(IDAFactory da, CityServerContext ctx, ISessions sessions, IKernel kernel)
 {
     DA       = da;
     Kernel   = kernel;
     Context  = ctx;
     Sessions = sessions;
 }
示例#5
0
 public Neighborhoods(IDAFactory daFactory, CityServerContext context, IKernel kernel, ISessions sessions)
 {
     Kernel    = kernel;
     DAFactory = daFactory;
     Context   = context;
     Sessions  = sessions;
 }
示例#6
0
 public PurchaseLotHandler(CityServerContext context, IRealestateDomain realestate, IDAFactory da, IDataService dataService)
 {
     Context          = context;
     GlobalRealestate = realestate;
     Realestate       = realestate.GetByShard(context.ShardId);
     DA          = da;
     DataService = dataService;
 }
示例#7
0
 public VoltronConnectionLifecycleHandler(ISessions sessions, IDataService dataService, IDAFactory da, CityServerContext context, LotServerPicker lotServers)
 {
     this.VoltronSessions = sessions.GetOrCreateGroup(Groups.VOLTRON);
     this.DataService     = dataService;
     this.DAFactory       = da;
     this.Context         = context;
     this.LotServers      = lotServers;
 }
示例#8
0
 public EventSystem(IDAFactory da, CityServerContext ctx, ISessions sessions, IKernel kernel, Tuning tuning)
 {
     DA           = da;
     Kernel       = kernel;
     Context      = ctx;
     Sessions     = sessions;
     TuningDomain = tuning;
 }
示例#9
0
 public ChangeRoommateHandler(ISessions sessions, IDAFactory da, CityServerContext context, IDataService dataService, LotServerPicker lotServers, LotAllocations lots)
 {
     this.Sessions    = sessions;
     this.DAFactory   = da;
     this.Context     = context;
     this.DataService = dataService;
     this.LotServers  = lotServers;
     this.Lots        = lots;
 }
示例#10
0
 public NhoodHandler(CityServerContext context, IRealestateDomain realestate, IDAFactory da, IDataService dataService, IKernel kernel, Neighborhoods nhoods)
 {
     Context          = context;
     GlobalRealestate = realestate;
     Realestate       = realestate.GetByShard(context.ShardId);
     DA          = da;
     DataService = dataService;
     Kernel      = kernel;
     Nhoods      = nhoods;
 }
示例#11
0
 public VoltronConnectionLifecycleHandler(ISessions sessions, IDataService dataService, IDAFactory da, CityServerContext context, LotServerPicker lotServers, CityLivenessEngine engine,
                                          EventSystem events)
 {
     VoltronSessions = sessions.GetOrCreateGroup(Groups.VOLTRON);
     Sessions        = sessions;
     DataService     = dataService;
     DAFactory       = da;
     Context         = context;
     LotServers      = lotServers;
     Liveness        = engine;
     Events          = events;
 }
示例#12
0
        public BulletinHandler(CityServerContext context, IDAFactory da, IDataService dataService, IKernel kernel, Neighborhoods nhoods)
        {
            Context     = context;
            DA          = da;
            DataService = dataService;
            Kernel      = kernel;
            Nhoods      = nhoods;

            POST_FREQ_LIMIT       = context.Config.Neighborhoods.Bulletin_Post_Frequency * 60 * 60 * 24;
            POST_FREQ_LIMIT_MAYOR = context.Config.Neighborhoods.Bulletin_Mayor_Frequency * 60 * 60 * 24;
            MOVE_LIMIT_PERIOD     = context.Config.Neighborhoods.Bulletin_Move_Penalty * 60 * 60 * 24;
        }
 public VoltronConnectionLifecycleHandler(ISessions sessions, IDataService dataService, IDAFactory da, CityServerContext context, LotServerPicker lotServers, CityLivenessEngine engine,
                                          EventSystem events, Neighborhoods neigh)
 {
     this.VoltronSessions = sessions.GetOrCreateGroup(Groups.VOLTRON);
     this.Sessions        = sessions;
     this.DataService     = dataService;
     this.DAFactory       = da;
     this.Context         = context;
     this.LotServers      = lotServers;
     this.Liveness        = engine;
     this.Events          = events;
     this.Neigh           = neigh;
 }
示例#14
0
        public RegistrationHandler(CityServerContext context, IDAFactory daFactory, GameContent content)
        {
            Context   = context;
            DAFactory = daFactory;
            Content   = content;

            content.AvatarCollections.Get("ea_female_heads.col")
            .Select(x => content.AvatarPurchasables.Get(x.PurchasableOutfitId)).ToList()
            .ForEach(x => ValidFemaleOutfits.Add((uint)(x.OutfitID >> 32), x));

            content.AvatarCollections.Get("ea_female.col")
            .Select(x => content.AvatarPurchasables.Get(x.PurchasableOutfitId)).ToList()
            .ForEach(x => ValidFemaleOutfits.Add((uint)(x.OutfitID >> 32), x));

            content.AvatarCollections.Get("ea_male_heads.col")
            .Select(x => content.AvatarPurchasables.Get(x.PurchasableOutfitId)).ToList()
            .ForEach(x => ValidMaleOutfits.Add((uint)(x.OutfitID >> 32), x));

            content.AvatarCollections.Get("ea_male.col")
            .Select(x => content.AvatarPurchasables.Get(x.PurchasableOutfitId)).ToList()
            .ForEach(x => ValidMaleOutfits.Add((uint)(x.OutfitID >> 32), x));
        }
示例#15
0
 public ModerationHandler(IDAFactory da, ISessions sessions, CityServerContext context)
 {
     this.DAFactory = da;
     this.Context   = context;
     this.Sessions  = sessions;
 }
示例#16
0
 public LotAllocation(IDAFactory da, CityServerContext context)
 {
     Context   = context;
     DAFactory = da;
 }
示例#17
0
 public DBRequestWrapperHandler(CityServerContext context, IDAFactory da, ServerTop100Domain Top100)
 {
     this.DAFactory = da;
     this.Context   = context;
     this.Top100    = Top100;
 }
示例#18
0
 public ElectronFindAvatarHandler(IDAFactory da, CityServerContext context)
 {
     this.DAFactory = da;
     this.Context   = context;
 }
示例#19
0
 public MatchmakerNotifyHandler(JobMatchmaker mm, CityServerContext context)
 {
     Context    = context;
     Matchmaker = mm;
 }
示例#20
0
 public ServerTop100Domain(IDAFactory DAFactory, CityServerContext context, MemoryCache cache)
 {
     Cache          = cache;
     this.DAFactory = DAFactory;
     this.Context   = context;
 }