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; }
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; }
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; }
public void PushStateToBottom(BaseState state) { SharpMochaPINVOKE.GSM_PushStateToBottom__SWIG_1(swigCPtr, BaseState.getCPtr(state)); }
public void RemoveState(BaseState state) { SharpMochaPINVOKE.GSM_RemoveState(swigCPtr, BaseState.getCPtr(state)); }
public void PushStateToBottom(BaseState state, bool doInit) { SharpMochaPINVOKE.GSM_PushStateToBottom__SWIG_0(swigCPtr, BaseState.getCPtr(state), doInit); }
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 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; }
public void MergeStates(BaseState src, BaseState dest) { SharpMochaPINVOKE.StateSerializer_MergeStates__SWIG_1(swigCPtr, BaseState.getCPtr(src), BaseState.getCPtr(dest)); }
public GameObjectIterator(BaseState stateToView) : this(SharpMochaPINVOKE.new_GameObjectIterator(BaseState.getCPtr(stateToView)), true) { }