/// <summary> /// Tests if an object is a plugin with the supplied SuperClass. /// </summary> public static bool IsSuperClass(IObject objectRef, SClass_ID scid) { if (objectRef == null) return false; return objectRef.SuperClassID == scid; }
/// <summary> /// Tests if an object is a plugin with the supplied SuperClass. /// </summary> public static bool IsSuperClass(IINode node, SClass_ID scid) { if (node == null) return false; return IsSuperClass(node.ObjectRef, scid); }
/// <summary> /// Tests if an object is a plugin with the supplied SuperClass. /// </summary> public static bool IsSuperClass(Object node, SClass_ID scid) { IINode inode = node as IINode; if (inode == null) return false; else return IsSuperClass(inode, scid); }
public static IEnumerable <IINode> NodesListBySuperClass(this IINode rootNode, SClass_ID sid) { return(from n in rootNode.NodeTree() where n.ObjectRef != null && n.EvalWorldState(0, false).Obj.SuperClassID == sid select n); }
public static IEnumerable<IINode> NodesListBySuperClasses(this IINode rootNode, SClass_ID[] sids) { return from n in rootNode.NodeTree() where n.ObjectRef != null && sids.Any(sid => n.EvalWorldState(0, false).Obj.SuperClassID == sid) select n; }
public SuperClassID(SClass_ID id) { this.id = (ulong)id; }
public PrimObjectFactory(SClass_ID scid, BuiltInClassIDA cidA) : base(scid, cidA) { }
public RefResult NotifyDependents_(IInterval changeInt, UIntPtr partID, RefMessage message, SClass_ID sclass, bool propagate, IReferenceTarget hTarg) { throw new NotImplementedException(); }
public bool RemoveAppDataChunk(IClass_ID cid, SClass_ID sid, uint sbid) { throw new NotImplementedException(); }
public IAppDataChunk GetAppDataChunk(IClass_ID cid, SClass_ID sid, uint sbid) { throw new NotImplementedException(); }
public void AddAppDataChunk(IClass_ID cid, SClass_ID sid, uint sbid, byte[] data) { throw new NotImplementedException(); }