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

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

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