예제 #1
0
파일: NameMap.cs 프로젝트: dd-dk/sims3tools
        public static NameMap Load(Package _package)
        {
            NameMap nm = new NameMap();

            nm.resource = _package.FindResource(MatchNMAPResourceType);
            nm._package = _package;

            return nm.resource.IResource == null ? null : nm;
        }
예제 #2
0
        public static NameMap Load(Package _package)
        {
            NameMap nm = new NameMap();

            nm.resource = _package.FindResource(MatchNMAPResourceType);
            nm._package = _package;

            return(nm.resource.IResource == null ? null : nm);
        }
예제 #3
0
        public static StringTable Load(Package _package, Language language, ulong iid)
        {
            StringTable st = new StringTable();

            ulong liid = iid | (((ulong)language) << 56);

            st.resource = _package.FindResource(x => x.ResourceType == STBLResourceType && x.Instance == liid);
            if (st.resource.IResource != null)
            {
                st.resource.IResource.ResourceChanged += new EventHandler(st.OnResourceChanged);
                st._package = _package;
                return(st);
            }

            return(null);
        }