예제 #1
0
        // called by native code
        public static void NETUpdate(float timeStep)
        {
            GC.Collect();
            GC.WaitForPendingFinalizers();
            GC.Collect();
            ReleaseExpiredNativeReferences();

            ComponentCore.Update(timeStep);
        }
예제 #2
0
        public void Destroy()
        {
            if (Node != null)
            {
                Node.RemoveComponent(this);
            }

            // if we're a CSComponent notify ComponentCore
            ComponentCore.DestroyComponent(this);
        }
예제 #3
0
 public static void RegisterAssemblyComponents(Assembly assembly)
 {
     ComponentCore.RegisterAssemblyComponents(assembly);
 }
예제 #4
0
 static void CSComponentCallMethod(uint componentID, CSComponentMethod method, float value)
 {
     ComponentCore.CallComponentMethod(componentID, method, value);
 }
예제 #5
0
 static IntPtr CSComponentCreate(string name)
 {
     return(ComponentCore.CreateCSComponent(name));
 }