Пример #1
0
        private static void Preload()
        {
            ProtoBuf.Meta.RuntimeTypeModel.Default[typeof(Material)].CompileInPlace();
            //ProtoBuf.Meta.RuntimeTypeModel.Default[typeof(Meshing.HacdConvexHull)].CompileInPlace();
            //ProtoBuf.Meta.RuntimeTypeModel.Default[typeof(PhysicsProperties)].CompileInPlace();
            //ProtoBuf.Meta.RuntimeTypeModel.Default[typeof(InWorldz.PhysxPhysics.Vehicle.DynamicsSimulationData)].CompileInPlace();
            //ProtoBuf.Meta.RuntimeTypeModel.Default[typeof(InWorldz.PhysxPhysics.Vehicle.VehicleProperties)].CompileInPlace();

            foreach (var type in Assembly.GetExecutingAssembly().GetTypes())
            {
                BasicPhysicsPlugin.PreloadMethods(type);
            }
        }
Пример #2
0
 public bool Init()
 {
     BasicPhysicsPlugin.Preload();
     return(true);
 }