private DragonNode getDragonNode(byte type = 0) { for (int i = 0; i < this.node_ary.Count; i++) { DragonNode node = this.node_ary[i]; if ((node != null) && node.IsType(type)) { return(node); } } return(null); }
private DragonNode getDragonNode(uint objid, byte type) { for (int i = 0; i < this.node_ary.Count; i++) { DragonNode node = this.node_ary[i]; if (((node != null) && node.IsType(type)) && (node.objid == objid)) { return(node); } } for (int j = 0; j < this.node_ary.Count; j++) { DragonNode node2 = this.node_ary[j]; if (((node2 != null) && node2.IsType(type)) && (node2.objid == 0)) { node2.objid = objid; return(node2); } } return(null); }