public bool SaveState(BaseState b, string filename)
        {
            bool ret = SharpMochaPINVOKE.StateSerializer_SaveState(swigCPtr, BaseState.getCPtr(b), filename);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Пример #2
0
 public void PushState(BaseState state)
 {
     SharpMochaPINVOKE.GSM_PushState__SWIG_1(swigCPtr, BaseState.getCPtr(state));
 }
Пример #3
0
 public void PushState(BaseState state, bool doInit)
 {
     SharpMochaPINVOKE.GSM_PushState__SWIG_0(swigCPtr, BaseState.getCPtr(state), doInit);
 }
Пример #4
0
 public void RemoveState(BaseState state)
 {
     SharpMochaPINVOKE.GSM_RemoveState(swigCPtr, BaseState.getCPtr(state));
 }
 public void MergeStates(BaseState src, BaseState dest)
 {
     SharpMochaPINVOKE.StateSerializer_MergeStates__SWIG_1(swigCPtr, BaseState.getCPtr(src), BaseState.getCPtr(dest));
 }
 public void MergeStates(BaseState src, BaseState dest, BoolVector whichObjsToMerge)
 {
     SharpMochaPINVOKE.StateSerializer_MergeStates__SWIG_0(swigCPtr, BaseState.getCPtr(src), BaseState.getCPtr(dest), BoolVector.getCPtr(whichObjsToMerge));
 }
 public GameObjectIterator(BaseState stateToView) : this(SharpMochaPINVOKE.new_GameObjectIterator(BaseState.getCPtr(stateToView)), true)
 {
 }
Пример #8
0
        public GameObject MakeNewGameObject(GameObject obj, bool addToState, BaseState state)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.ObjectFactory_MakeNewGameObject__SWIG_3(swigCPtr, GameObject.getCPtr(obj), addToState, BaseState.getCPtr(state));
            GameObject            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);

            return(ret);
        }
Пример #9
0
        public GameObject MakeNewGameObject(string name, BaseState state)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.ObjectFactory_MakeNewGameObject__SWIG_1(swigCPtr, name, BaseState.getCPtr(state));
            GameObject            ret  = (cPtr == global::System.IntPtr.Zero) ? null : new GameObject(cPtr, false);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }