本文整理汇总了C#中Library.SetMethodParameterUsage方法的典型用法代码示例。如果您正苦于以下问题:C# Library.SetMethodParameterUsage方法的具体用法?C# Library.SetMethodParameterUsage怎么用?C# Library.SetMethodParameterUsage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Library
的用法示例。
在下文中一共展示了Library.SetMethodParameterUsage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Preprocess
//.........这里部分代码省略.........
lib.IgnoreClassWithName("HandleManager");
lib.IgnoreClassWithName("Delegate0");
lib.IgnoreClassWithName("Delegate1");
lib.IgnoreClassWithName("Delegate2");
lib.IgnoreClassWithName("TaskPool");
lib.IgnoreClassWithName("ConcurrentQueue");
lib.SetClassAsValueType("StringHash");
lib.IgnoreClassWithName("RawStringCompare");
lib.SetClassAsValueType("LogEntry");
lib.IgnoreFunctionWithName("LogCreate");
lib.IgnoreFunctionWithName("AllocatorAllocate");
lib.IgnoreFunctionWithName("AllocatorDeallocate");
lib.SetNameOfFunction("AllocatorReset", "AllocatorResetMemory");
lib.IgnoreClassWithName("StreamFuncs");
lib.IgnoreClassWithName("FileStream");
lib.SetClassAsValueType("FileWatchEvent");
lib.IgnoreFunctionWithPattern(".+GetType");
lib.IgnoreFunctionWithName("ClassGetIdMap");
lib.IgnoreFunctionWithName("ReflectionSetHandleContext");
lib.IgnoreFunctionWithName("SerializerCreateJSON");
lib.IgnoreFunctionWithName("SerializerCreateBinary");
lib.IgnoreClassWithName("ReflectionContext");
lib.IgnoreClassWithName("ValueContext");
lib.SetClassAsValueType("ExtensionMetadata");
lib.IgnoreClassWithName("MemoryStream");
lib.IgnoreClassWithName("Serializer");
lib.IgnoreClassWithName("Thread");
// Math
lib.SetClassAsValueType("ColorP");
lib.SetClassAsValueType("Color");
lib.SetClassAsValueType("Vector2P");
lib.SetClassAsValueType("Vector2");
lib.SetClassAsValueType("Vector2i");
lib.SetClassAsValueType("Vector3P");
lib.SetClassAsValueType("Vector3");
lib.SetClassAsValueType("Vector4");
lib.SetClassAsValueType("EulerAngles");
lib.SetClassAsValueType("QuaternionP");
lib.SetClassAsValueType("Quaternion");
lib.SetClassAsValueType("Matrix4x3");
lib.SetClassAsValueType("Matrix4x4");
lib.CopyClassFields("ColorP", "Color");
lib.CopyClassFields("Vector2P", "Vector2");
lib.CopyClassFields("Vector3P", "Vector3");
lib.CopyClassFields("QuaternionP", "Quaternion");
lib.IgnoreClassWithName("ColorP");
lib.IgnoreClassWithName("Vector2P");
lib.IgnoreClassWithName("Vector3P");
lib.IgnoreClassWithName("QuaternionP");
lib.SetNameOfClassMethod("Matrix4x3", "identity", "setIdentity");
lib.SetNameOfClassMethod("Matrix4x4", "identity", "setIdentity");
lib.SetNameOfClassMethod("Quaternion", "identity", "setIdentity");
lib.SetNameOfClassMethod("Vector2", "zero", "setZero");
lib.SetNameOfClassMethod("Vector3", "zero", "setZero");
lib.SetNameOfClassMethod("Vector4", "zero", "setZero");
// Resources
lib.IgnoreFunctionWithName("ResourcesInitialize");
lib.IgnoreFunctionWithName("ResourcesDeinitialize");
//lib.SetClassAsValueType("ResourceEvent");
lib.SetClassAsValueType("ResourceLoadOption");
lib.SetClassAsValueType("ResourceLoadOptions");
lib.SetNameOfClassMethod("Texture", "allocate", "alloc");
lib.ExcludeFromPass("ResourceHandleCreate", typeof (FunctionToInstanceMethodPass));
// Graphics
lib.SetClassAsValueType("RenderContextSettings");
lib.SetClassAsValueType("RenderBatchRange");
lib.SetClassAsValueType("VertexElementP");
lib.SetClassAsValueType("VertexElement");
lib.SetClassAsValueType("UniformBufferElement");
lib.SetClassAsValueType("RenderState");
lib.SetClassAsValueType("LightState");
lib.IgnoreHeadersWithName("MaxRectsBinPack.h");
lib.IgnoreClassWithName("MaxRectsBinPack");
lib.IgnoreClassWithName("CompareHandle");
lib.SetClassAsValueType("Glyph");
lib.SetClassAsValueType("Rectangle");
lib.SetClassAsValueType("RectangleF");
lib.SetClassAsValueType("SubTexture");
lib.SetMethodParameterUsage("TextureAtlas", "getImageSubTexture", 2, ParameterUsage.Out);
lib.SetMethodParameterUsage("Font", "getGlyphInfo", 3, ParameterUsage.Out);
// Engine
lib.IgnoreClassMethodWithName("Engine", "addSubsystem");
}