Esempio n. 1
0
 public AreaZonePlayer(AreaService svc, AreaZoneNode node, RoleEnterZoneRequest enter)
 {
     Alloc.RecordConstructor(this.GetType());
     this.log                = LoggerFactory.GetLogger(GetType().Name);
     this.service            = svc;
     this.node               = node;
     this.enter              = enter;
     this.client_event_route = TypeCodec.GetAttributeRoute(typeof(ClientBattleEvent));
 }
Esempio n. 2
0
 public AreaZoneNode(AreaService svc, CreateZoneNodeRequest create, MapTemplateData map_temp)
 {
     Alloc.RecordConstructor(GetType().ToVisibleName() + ":" + map_temp.id);
     this.log      = LoggerFactory.GetLogger(string.Format("{0}-{1}", GetType().Name, create.managerZoneUUID));
     this.service  = svc;
     this.create   = create;
     this.map_temp = map_temp;
     this.uuid     = create.managerZoneUUID;
     this.node     = CreateZoneNode(create);
 }