Пример #1
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;
 }
Пример #2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(BaseState obj)
 {
     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Пример #3
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;
 }
Пример #4
0
 public void PushStateToBottom(BaseState state)
 {
     SharpMochaPINVOKE.GSM_PushStateToBottom__SWIG_1(swigCPtr, BaseState.getCPtr(state));
 }
Пример #5
0
 public void RemoveState(BaseState state)
 {
     SharpMochaPINVOKE.GSM_RemoveState(swigCPtr, BaseState.getCPtr(state));
 }
Пример #6
0
 public void PushStateToBottom(BaseState state, bool doInit)
 {
     SharpMochaPINVOKE.GSM_PushStateToBottom__SWIG_0(swigCPtr, BaseState.getCPtr(state), doInit);
 }
Пример #7
0
 public void MergeStates(BaseState src, BaseState dest, BoolVector whichObjsToMerge)
 {
     SharpMochaPINVOKE.StateSerializer_MergeStates__SWIG_0(swigCPtr, BaseState.getCPtr(src), BaseState.getCPtr(dest), BoolVector.getCPtr(whichObjsToMerge));
 }
Пример #8
0
 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;
 }
Пример #9
0
 public void MergeStates(BaseState src, BaseState dest)
 {
     SharpMochaPINVOKE.StateSerializer_MergeStates__SWIG_1(swigCPtr, BaseState.getCPtr(src), BaseState.getCPtr(dest));
 }
Пример #10
0
 public GameObjectIterator(BaseState stateToView)
     : this(SharpMochaPINVOKE.new_GameObjectIterator(BaseState.getCPtr(stateToView)), true)
 {
 }