示例#1
0
 public BehaviorCheckTriggerBridge(System.IntPtr _helperFactory, BehaviorCheckTrigger _controller)
 {
     controller    = _controller;
     helperFactory = _helperFactory;
     beginBehaviorCheckCallback = (bhvrChkListener) => {
         controller.BeginBehavior(new NativeBehaviorCheckListener(bhvrChkListener));
     };
     ImplPtr = NewBehaviorCheckTrigger(helperFactory,
                                       beginBehaviorCheckCallback,
                                       stopBehaviorCallback     = () => { },
                                       continueBehaviorCallback = () => { }
                                       );
 }
示例#2
0
 private extern static void ExtractClusterGBlock(
     System.IntPtr gCluster,
     SinglePtrCallback forEachElement,
     SinglePtrCallback ifHasModifier,
     SinglePtrCallback ifMetaInfo
     );
示例#3
0
 private extern static void ExtractGUnit(
     System.IntPtr gUnit,
     SingleWordCallback getWords,
     SinglePtrCallback ifHasModifier,
     SinglePtrCallback ifMetaInfo
     );
示例#4
0
 public PtrClusterFetcher()
 {
     ptrFetchCallback = (ptr) => {
         fetchedPtrs.Add(ptr);
     };
 }
示例#5
0
 public PtrFetcher()
 {
     ptrFetchCallback = (ptr) => {
         fetchedPtr = ptr;
     };
 }
示例#6
0
 private extern static System.IntPtr NewBehaviorCheckTrigger(
     System.IntPtr behaviorFactory,
     SinglePtrCallback beginBehaviorCallback,
     SignalCallback stopCallback,
     SignalCallback continueCallback
     );