public Server(ushort port) { this.port = port; Lua.AddGlobal("e_Server", this); Lua.RegisterFunction("e_AddConnectionCallback", this, GetType().GetMethod("AddConnectionCallback")); Lua.RegisterFunction("e_AddConnectionEstablishedCallback", this, GetType().GetMethod("AddConnectionEstablishedCallback")); Lua.RegisterFunction("e_AddLoginCallback", this, GetType().GetMethod("AddLoginCallback")); }