mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 17:47:42 +00:00
Reformat pass
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
"Generates TCastTo source files for constexpr-enabled CEntity casts"
|
||||
|
||||
|
||||
class Namespace:
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
|
||||
class EndNamespace:
|
||||
pass
|
||||
|
||||
|
||||
CENTITY_TYPES = (
|
||||
# Class, Header
|
||||
('CActor', 'World/CActor.hpp'),
|
||||
@@ -79,12 +82,14 @@ CENTITY_TYPES = (
|
||||
('CScriptDebris', 'World/CScriptDebris.hpp'),
|
||||
)
|
||||
|
||||
|
||||
def getqualified(tp):
|
||||
if len(tp) >= 3:
|
||||
return tp[2] + '::' + tp[0]
|
||||
else:
|
||||
return tp[0]
|
||||
|
||||
|
||||
headerf = open('TCastTo.hpp', 'w')
|
||||
sourcef = open('TCastTo.cpp', 'w')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user