Repackaged all non-code ship and comm data.

Every resource that isn't of type CODE now has a resource ID that
will not conflict with any other resource, even without switchable
resource indices.

CODE-type resources currently rely on the ability to switch out
such values, and so have been left alone for now.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2926 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2008-02-25 00:44:49 +00:00
parent d0dcf67ac6
commit 9f577a4abe
292 changed files with 2306 additions and 1818 deletions
+4
View File
@@ -22,6 +22,10 @@ class ResEntry(object):
self.res_file = res_file
def res_number(self):
return res_encode (self.package, self.instance, self.int_type)
def csv_line(self):
return "%s,%s,%s,%d,%d,%d,%s,%s,%s" % (self.hfile, self.ls2file, self.constant,
self.package, self.instance, self.int_type,
self.res_id, self.res_type, self.res_file)
def res_encode(pkg, instance, t):
return ((pkg & 0x7ff) << 21) | ((instance & 0x1FFF) << 8) | (t & 0xFF)