Ejemplo n.º 1
0
        public static NameMap New(Package _package, ulong? iid = null)
        {
            NameMap nm = new NameMap();

            nm.resource = _package.NewResource(NMAPResourceType, 0, iid.HasValue ? iid.Value : Package.NewInstance());
            nm._package = _package;

            return nm;
        }
Ejemplo n.º 2
0
        public static NameMap New(Package _package, ulong?iid = null)
        {
            NameMap nm = new NameMap();

            nm.resource = _package.NewResource(NMAPResourceType, 0, iid.HasValue ? iid.Value : Package.NewInstance());
            nm._package = _package;

            return(nm);
        }
Ejemplo n.º 3
0
        public static StringTable New(Package _package, Language language, ulong?iid = null, string name = null)
        {
            StringTable st = new StringTable();

            ulong liid = (iid.HasValue ? iid.Value : (Package.NewInstance() >> 8)) | (((ulong)language) << 56);

            if (name == null)
            {
                name = "Strings_" + language.ToString() + "_" + liid.ToString("x16");
            }

            st.resource = _package.NewResource(STBLResourceType, 0, liid, name);
            st._package = _package;

            return(st);
        }