Exemplo n.º 1
0
    public virtual bool init(GameInitParam param)
    {
        bool ret = mcworld_client_corePINVOKE.IGameDef_init(swigCPtr, GameInitParam.getCPtr(param));

        if (mcworld_client_corePINVOKE.SWIGPendingException.Pending)
        {
            throw mcworld_client_corePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemplo n.º 2
0
    public void Init(World world)
    {
        _World = world;

        var initParam = new GameInitParam();

        initParam.bLogtoStd           = false;
        initParam.logCallback         = OnCppLogCallback;
        initParam.blockCallback       = OnCppBlockReceiveCallback;
        initParam.messageCallback     = OnCppProtocolCallback;
        initParam.serverReadyCallback = OnCppServerReadyCallback;

        _GameDef = mcworld_client_core.CreateGameDef();

        bool initResult = _GameDef.init(initParam);

        LogHelper.DEBUG("CppCore", "Init(InitParam) result={0}", initResult);
    }
Exemplo n.º 3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GameInitParam obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }