// Start is called before the first frame update private void Start() { logger = GameObject.FindObjectOfType <GameUILog>(); gameClient = IoCContainer.Instance.Resolve <IRavenClient>(); Auth = gameClient.Modules.GetModule <Authentication>(); PlayerHandler = gameClient.Modules.GetModule <PlayerHandler>(); ObjectHandler = gameClient.Modules.GetModule <ObjectHandler>(); NpcHandler = gameClient.Modules.GetModule <NpcHandler>(); CharacterHandler = gameClient.Modules.GetModule <CharacterHandler>(); ChatMessageHandler = gameClient.Modules.GetModule <ChatMessageHandler>(); //Connect(); }
public RavenClient(ILogger logger, IModuleManager moduleManager, INetworkPacketController controller) { this.logger = logger; this.Modules = moduleManager; this.client = new RavenNetworkClient(logger, RegisterPacketHandlers(controller)); this.auth = this.Modules.AddModule(new Authentication(this.client)); this.playerHandler = this.Modules.AddModule(new PlayerHandler()); this.npcHandler = this.Modules.AddModule(new NpcHandler()); this.objectHandler = this.Modules.AddModule(new ObjectHandler()); this.npcHandler = this.Modules.AddModule(new NpcHandler()); this.characterHandler = this.Modules.AddModule(new CharacterHandler()); this.chatMessageHandler = this.Modules.AddModule(new ChatMessageHandler()); }
public PlayerNpcActionResponseHandler(ILogger logger, IModuleManager moduleManager) { this.logger = logger; this.moduleManager = moduleManager; }