diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-03-09 17:27:37 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-03-09 17:27:37 +0000 |
commit | 2bd3c408f06b21c621c9471c45ef8be0b1487892 (patch) | |
tree | bc2331968ec5210e0d4f31694fba069cfce51d0e /test/test.cs | |
parent | 450b54a7c21f1e7fa98249fe6b3ac4c98966f163 (diff) |
fixes for mono object passing
svn path=/trunk/externals/clr/; revision=4669
Diffstat (limited to 'test/test.cs')
-rw-r--r-- | test/test.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/test.cs b/test/test.cs index cfde7c6..0171275 100644 --- a/test/test.cs +++ b/test/test.cs @@ -18,7 +18,7 @@ public class test: AddInlet(); AddInlet(ref farg); AddInlet(); - AddOutletBang(); + AddOutletAnything(); } // this function MUST exist @@ -31,6 +31,8 @@ public class test: AddMethod(0,new MethodList(obj.MyList)); AddMethod(0,"set",new MethodAnything(obj.MySet)); AddMethod(0,"send",new MethodAnything(obj.MySend)); + AddMethod(0,"trigger",new Method(obj.MyTrigger)); + AddMethod(0,new MethodObject(obj.MyObject)); AddMethod(0,new MethodAnything(obj.MyAnything)); AddMethod(1,new MethodFloat(obj.MyFloat1)); AddMethod(1,new MethodAnything(obj.MyAny1)); @@ -85,6 +87,16 @@ public class test: Send(new PureData.Symbol("receiver2"),(PureData.Atom[])l); } + protected virtual void MyTrigger() + { + OutletEx(0,"hey"); + } + + protected virtual void MyObject(int ix,object obj) + { + Post("OBJECT "+obj.ToString()); + } + protected virtual void MyAnything(int ix,PureData.Symbol s,PureData.AtomList l) { Post(ix.ToString()+": Test-("+s.ToString()+") "+l.ToString()); |