예제 #1
0
        // TODO: Add ClientHooks with multiple events like: Draw, PlayAudio, PressKey, etc.
        public NegumClient(ISideConfiguration config)
        {
            this.PacketHandler = this.ResolveModule <IClientPacketHandler>();
            this.Input         = this.ResolveModule <IInputManager>();
            this.Hooks         = this.ResolveModule <IClientHooks>();
            this.Screen        = this.ResolveModule <IScreenManager>();
            this.Match         = this.ResolveModule <IMatchManager>();
            this.Renderer      = this.ResolveModule <IRenderManager>();

            this.CallerThread       = config.CallerThread;
            this.LocalServerContext = config.ConnectionContext;
            this.RefreshRate        = config.FrameRate;
            this.Engine             = config.Engine;
        }
예제 #2
0
 public NegumServerTcp(ISideConfiguration configuration)
 {
     this.PacketHandler  = new ServerPacketHandler(this);
     this.NetworkManager = new ServerNetworkManagerTcp(this, configuration.ConnectionContext);
 }