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

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

            // if we're a CSComponent notify ComponentCore
            ComponentCore.DestroyComponent(this);
        }
 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));
 }