public int EditorStartup(AGSEditor editor) { editor.RegisterScriptHeader(@" managed struct Vector3 { import attribute float X; import attribute float Y; import attribute float Z; import void Add(Vector3* other); import void Subtract(Vector3* other); import static Vector3* Create(float X, float Y, float Z); }; "); return 0; }
public int EditorStartup(AGSEditor editor) { editor.RegisterScriptHeader(OurScriptHeader); return 0; }
public int EditorStartup(AGSEditor editor) { return 0; }
public int EditorStartup(AGSEditor editor) { editor.RegisterScriptHeader("import void Test();\r\n"); return 0; }
internal static HandleRef GetCPtr(AGSEditor obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.handle; }