public arrayType(rtype rtype = default, ref ptr <rtype> elem = default, ref ptr <rtype> slice = default, System.UIntPtr len = default) { this.m_rtypeRef = new ptr <rtype>(rtype); this.elem = elem; this.slice = slice; this.len = len; }
//private int cost; public Resource(int id, int type, int level, int value) //, int cost) { this.id = id; this.type = (rtype)type; this.level = level; this.value = value; //this.cost = cost; }
public mapType(rtype rtype = default, ref ptr <rtype> key = default, ref ptr <rtype> elem = default, ref ptr <rtype> bucket = default, Func <unsafe.Pointer, System.UIntPtr, System.UIntPtr> hasher = default, byte keysize = default, byte valuesize = default, ushort bucketsize = default, uint flags = default)
public funcType(rtype rtype = default, ushort inCount = default, ushort outCount = default) { this.m_rtypeRef = new ptr <rtype>(rtype); this.inCount = inCount; this.outCount = outCount; }
public interfaceType(rtype rtype = default, name pkgPath = default, slice <imethod> methods = default) { this.m_rtypeRef = new ptr <rtype>(rtype); this.pkgPath = pkgPath; this.methods = methods; }
public structType(rtype rtype = default, name pkgPath = default, slice <structField> fields = default) { this.m_rtypeRef = new ptr <rtype>(rtype); this.pkgPath = pkgPath; this.fields = fields; }
public ptrType(rtype rtype = default, ref ptr <rtype> elem = default) { this.m_rtypeRef = new ptr <rtype>(rtype); this.elem = elem; }
private static bool eq(this rtype x, types.Type _, object y) { return(types.Identical(x.t, y._ <rtype>().t)); }
private static long hash(this rtype x, types.Type _) { return(hashType(x.t)); }
public chanType(rtype rtype = default, ref ptr <rtype> elem = default, System.UIntPtr dir = default) { this.m_rtypeRef = new ptr <rtype>(rtype); this.elem = elem; this.dir = dir; }