C# 클래스 FlatRedBall.Glue.Parsing.CodeWriter

파일 보기 프로젝트 열기: vchelaru/FlatRedBall

공개 메소드들

메소드 설명
CreateAndAddGeneratedFile ( IElement saveObject ) : void
CreateClass ( ClassProperties classProperties ) : ICodeBlock
CreateClass ( string namespaceName, string className, List members ) : ICodeBlock
CreateClass ( string namespaceName, string className, bool isPartial, List members, bool isStatic, List usingStatements, string>.Dictionary untypedMembers, ICodeBlock methodContent ) : ICodeBlock
CreateGeneratedFileIfNecessary ( IElement saveObject ) : void
EliminateCall ( string call, string &contents ) : void
GenerateAfterActivity ( ICodeBlock codeBlock, IElement saveObject ) : ICodeBlock
GenerateCode ( IElement element ) : void
GenerateLoadStaticContent ( ICodeBlock codeBlock, IElement saveObject ) : void
GeneratePostInitialize ( ICodeBlock codeBlock, IElement saveObject ) : void
InitializeStaticData ( string gameFileName, bool whetherToCall ) : void
IsOnOwnLayer ( IElement element ) : bool
MakeLocalizedIfNecessary ( NamedObjectSave namedObject, string variableName, object valueAsObject, string valueAsString, CustomVariable customVariable ) : string
SaveFileContents ( string fileContents, string fileName, bool tryAgain ) : bool
SetBaseClass ( string fileName, string baseClass ) : void
SetBaseClass ( string &fileContents, string baseClass, bool overwrite ) : void
SetBaseClass ( string fileName, string baseClass, bool overwrite, string &fileContents ) : void
SetBaseClass ( string fileName, string baseClass, string &fileContents ) : void
SetClassNameAndNamespace ( string projectNamespace, string elementName, StringBuilder templateCode ) : void
SetClassNameAndNamespace ( string classNamespace, string elementName, StringBuilder templateCode, bool useGlobalContent, string replacementContentManagerName, string inheritance ) : void

비공개 메소드들

메소드 설명
AddEventCustomCodeFileForElement ( IElement element ) : void
AddEventGeneratedCodeFileForElement ( IElement element ) : void
CodeWriter ( ) : System
GenerateActivity ( ICodeBlock codeBlock, IElement saveObject ) : ICodeBlock
GenerateAddThisEntityToManagers ( IElement saveObject, ICodeBlock currentBlock ) : void
GenerateAddToManagers ( IElement saveObject ) : ICodeBlock
GenerateAddToManagersBottomUp ( ICodeBlock codeBlock, IElement element, List reusableEntireFileRfses ) : void
GenerateAndAddElementCustomCode ( IElement element ) : void
GenerateAssignCustomVariables ( ICodeBlock codeBlock, IElement element ) : void
GenerateAssignmentForListOfObjects ( ICodeBlock codeBlock, IElement element, ICodeBlock ifCallOnContainedElements, List listOfItems ) : void
GenerateConvertToManuallyUpdated ( ICodeBlock codeBlock, IElement saveObject, List reusableEntireFileRfses ) : void
GenerateDestroy ( IElement saveObject ) : ICodeBlock
GenerateFields ( IElement saveObject ) : ICodeBlock
GenerateGeneralActivity ( ICodeBlock codeBlock, IElement saveObject ) : ICodeBlock
GenerateInitialize ( IElement saveObject ) : ICodeBlock
GenerateMethods ( ICodeBlock codeBlock, IElement saveObject ) : void
GeneratePauseIgnoringActivity ( ICodeBlock codeBlock, IElement saveObject ) : void
GenerateReAddToManagers ( IElement saveObject, ICodeBlock currentBlock ) : void
GenerateRemoveFromManagers ( ICodeBlock currentBlock, IElement saveObject ) : void
GenerateUnloadStaticContent ( ICodeBlock codeBlock, IElement saveObject ) : ICodeBlock
GenerateUsings ( StringBuilder stringBuilder, IElement saveObject ) : void
GetAllCodeFilesFor ( IElement element ) : List
GetIndexAfter ( string stringToSearchFor, StringBuilder entireStringToSearchIn ) : int
GetIndexAfter ( string stringToSearchFor, string entireStringToSearchIn ) : int
GetInheritance ( IElement element ) : string
IsAnyNamedObjectAttachedToCamera ( List namedObjectList ) : bool
IsCustomVariableAssignedInAddToManagers ( CustomVariable customVariable, IElement saveObject ) : bool
IsVariableHandledByCustomCodeGenerator ( CustomVariable customVariable, IElement element ) : bool
PrepareTypeToBeWritten ( TypedMemberBase member, string memberType ) : string
RefreshReusableEntireFileRfses ( IElement element ) : void
RefreshStartupScreenCode ( ) : void
ReplaceNamespace ( string fileContents, string newNamespace ) : string
ReplaceNamespace ( string fileContents, string newNamespace, string &oldNamespace ) : string
SetStartUpScreen ( string gameFileName, string startUpScreen ) : void

메소드 상세

CreateAndAddGeneratedFile() 공개 정적인 메소드

public static CreateAndAddGeneratedFile ( IElement saveObject ) : void
saveObject IElement
리턴 void

CreateClass() 공개 정적인 메소드

public static CreateClass ( ClassProperties classProperties ) : ICodeBlock
classProperties ClassProperties
리턴 ICodeBlock

CreateClass() 공개 정적인 메소드

public static CreateClass ( string namespaceName, string className, List members ) : ICodeBlock
namespaceName string
className string
members List
리턴 ICodeBlock

CreateClass() 공개 정적인 메소드

public static CreateClass ( string namespaceName, string className, bool isPartial, List members, bool isStatic, List usingStatements, string>.Dictionary untypedMembers, ICodeBlock methodContent ) : ICodeBlock
namespaceName string
className string
isPartial bool
members List
isStatic bool
usingStatements List
untypedMembers string>.Dictionary
methodContent ICodeBlock
리턴 ICodeBlock

CreateGeneratedFileIfNecessary() 공개 정적인 메소드

public static CreateGeneratedFileIfNecessary ( IElement saveObject ) : void
saveObject IElement
리턴 void

EliminateCall() 공개 정적인 메소드

public static EliminateCall ( string call, string &contents ) : void
call string
contents string
리턴 void

GenerateAfterActivity() 공개 정적인 메소드

public static GenerateAfterActivity ( ICodeBlock codeBlock, IElement saveObject ) : ICodeBlock
codeBlock ICodeBlock
saveObject IElement
리턴 ICodeBlock

GenerateCode() 공개 정적인 메소드

public static GenerateCode ( IElement element ) : void
element IElement
리턴 void

GenerateLoadStaticContent() 공개 정적인 메소드

public static GenerateLoadStaticContent ( ICodeBlock codeBlock, IElement saveObject ) : void
codeBlock ICodeBlock
saveObject IElement
리턴 void

GeneratePostInitialize() 공개 정적인 메소드

public static GeneratePostInitialize ( ICodeBlock codeBlock, IElement saveObject ) : void
codeBlock ICodeBlock
saveObject IElement
리턴 void

InitializeStaticData() 공개 정적인 메소드

public static InitializeStaticData ( string gameFileName, bool whetherToCall ) : void
gameFileName string
whetherToCall bool
리턴 void

IsOnOwnLayer() 공개 정적인 메소드

public static IsOnOwnLayer ( IElement element ) : bool
element IElement
리턴 bool

MakeLocalizedIfNecessary() 공개 정적인 메소드

public static MakeLocalizedIfNecessary ( NamedObjectSave namedObject, string variableName, object valueAsObject, string valueAsString, CustomVariable customVariable ) : string
namedObject FlatRedBall.Glue.SaveClasses.NamedObjectSave
variableName string
valueAsObject object
valueAsString string
customVariable FlatRedBall.Glue.SaveClasses.CustomVariable
리턴 string

SaveFileContents() 공개 정적인 메소드

public static SaveFileContents ( string fileContents, string fileName, bool tryAgain ) : bool
fileContents string
fileName string
tryAgain bool
리턴 bool

SetBaseClass() 공개 정적인 메소드

public static SetBaseClass ( string fileName, string baseClass ) : void
fileName string
baseClass string
리턴 void

SetBaseClass() 공개 정적인 메소드

public static SetBaseClass ( string &fileContents, string baseClass, bool overwrite ) : void
fileContents string
baseClass string
overwrite bool
리턴 void

SetBaseClass() 공개 정적인 메소드

public static SetBaseClass ( string fileName, string baseClass, bool overwrite, string &fileContents ) : void
fileName string
baseClass string
overwrite bool
fileContents string
리턴 void

SetBaseClass() 공개 정적인 메소드

public static SetBaseClass ( string fileName, string baseClass, string &fileContents ) : void
fileName string
baseClass string
fileContents string
리턴 void

SetClassNameAndNamespace() 공개 정적인 메소드

public static SetClassNameAndNamespace ( string projectNamespace, string elementName, StringBuilder templateCode ) : void
projectNamespace string
elementName string
templateCode StringBuilder
리턴 void

SetClassNameAndNamespace() 공개 정적인 메소드

public static SetClassNameAndNamespace ( string classNamespace, string elementName, StringBuilder templateCode, bool useGlobalContent, string replacementContentManagerName, string inheritance ) : void
classNamespace string
elementName string
templateCode StringBuilder
useGlobalContent bool
replacementContentManagerName string
inheritance string
리턴 void