예제 #1
0
 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;
 }
예제 #2
0
 public int EditorStartup(AGSEditor editor)
 {
     editor.RegisterScriptHeader(OurScriptHeader);
     return 0;
 }
예제 #3
0
 public int EditorStartup(AGSEditor editor)
 {
     return 0;
 }
예제 #4
0
 public int EditorStartup(AGSEditor editor)
 {
     editor.RegisterScriptHeader("import void Test();\r\n");
     return 0;
 }
예제 #5
0
 internal static HandleRef GetCPtr(AGSEditor obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.handle;
 }