Class ScriptManager
java.lang.Object
zombie.scripting.ScriptManager
- All Implemented Interfaces:
IScriptObjectStore
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final ScriptManagerfinal ArrayList<ScriptModule> final HashMap<String, ScriptModule> static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModelScript(ModelScript modelScript) voidaddSpriteModel(SpriteModel spriteModel) voidvoidvoidcheckMetaRecipe(IsoGameCharacter chr, String checkRecipe) voidstatic voidEnableDebug(ScriptType type, boolean enable) getAllFixing(ArrayList<Fixing> result) getAllRecipesFor(String result) getAnimationsMesh(String name) getBuildableRecipe(String recipe) getClockScript(String name) getCraftRecipe(String name) static Stringstatic Stringstatic StringgetEvolvedRecipe(String name) getFluidFilter(String name) getGameEntityScript(String name) getGameEntityTemplate(String name) getGameSound(String name) getItemConfig(String name) getItemFilter(String name) getItemForClothingItem(String clothingName) static StringgetItemName(String name) getItemsByType(String type) getItemsTag(ItemTag itemTag) getItemTypeForClothingItem(String clothingItem) getMannequinScript(String name) getModelScript(String name) getPhysicsShape(String name) getRagdollScript(String name) ArrayList<?> getScriptsForType(ScriptType type) getSoundTimeline(String name) getSpecificEntity(String name) getSpecificItem(String name) Attempts to get the specific item of "module.type" without defaulting to module "Base".getSpriteModel(String name) getStringList(String name) getTimedActionScript(String name) getUniqueRecipe(String name) getVehicle(String name) getVehicleEngineRPM(String name) getVehicleTemplate(String name) getXuiColor(String name) getXuiConfigScript(String name) getXuiDefaultStyle(String name) getXuiLayout(String name) getXuiSkinScript(String name) getXuiStyle(String name) booleanbooleanhasLoadErrors(boolean onlyCritical) static booleanisDebugEnabled(ScriptType type) booleanisDrainableItemType(String itemType) voidLoad()voidvoidLoadFile(ScriptLoadMode loadMode, String filename, boolean bLoadJar) voidParseScript(ScriptLoadMode loadMode, String totalFile) voidvoidstatic voidprintln(BaseScriptObject scriptObject, String msg) static voidprintln(ScriptType type, String msg) voidReloadScripts(EnumSet<ScriptType> types) voidReloadScripts(ScriptType type) voidReset()static voidresolveGetItemTypes(ArrayList<String> sourceItems, ArrayList<Item> scriptItems) resolveItemType(ScriptModule module, String itemType) resolveModelScript(ScriptModule module, String modelScriptName) voidsearchFolders(URI base, File fo, ArrayList<String> loadList) voidupdate()void
-
Field Details
-
instance
-
currentFileName
-
moduleMap
-
moduleList
-
currentLoadingModule
-
Base
- See Also:
-
Base_Module
- See Also:
-
VanillaID
- See Also:
-
-
Constructor Details
-
ScriptManager
public ScriptManager()
-
-
Method Details
-
EnableDebug
-
isDebugEnabled
-
println
-
println
-
getScriptsForType
-
getVehicleTemplate
-
getAllVehicleTemplates
-
getGameEntityTemplate
-
getAllGameEntityTemplates
-
getItem
- Specified by:
getItemin interfaceIScriptObjectStore
-
getAllItems
-
getRecipe
- Specified by:
getRecipein interfaceIScriptObjectStore
-
getAllRecipes
-
getUniqueRecipe
-
getAllUniqueRecipes
-
getEvolvedRecipe
-
getAllEvolvedRecipesList
-
getAllEvolvedRecipes
-
getFixing
-
getAllFixing
-
getAnimationsMesh
-
getAllAnimationsMeshes
-
getClockScript
-
getAllClockScripts
-
getMannequinScript
-
getAllMannequinScripts
-
getModelScript
-
getAllModelScripts
-
addModelScript
-
getPhysicsShape
-
getAllPhysicsShapes
-
getGameSound
-
getAllGameSounds
-
getSoundTimeline
-
getAllSoundTimelines
-
getSpriteModel
-
getAllSpriteModels
-
addSpriteModel
-
getVehicle
-
getAllVehicleScripts
-
getRandomVehicleScript
-
getRuntimeAnimationScript
-
getAllRuntimeAnimationScripts
-
getVehicleEngineRPM
-
getAllVehicleEngineRPMs
-
getItemConfig
-
getAllItemConfigs
-
getGameEntityScript
-
getAllGameEntities
-
getAllBuildableRecipes
-
getBuildableRecipe
-
getXuiConfigScript
-
getAllXuiConfigScripts
-
getXuiLayout
-
getAllXuiLayouts
-
getXuiStyle
-
getAllXuiStyles
-
getXuiDefaultStyle
-
getAllXuiDefaultStyles
-
getXuiColor
-
getAllXuiColors
-
getXuiSkinScript
-
getAllXuiSkinScripts
-
getItemFilter
-
getAllItemFilters
-
getFluidFilter
-
getAllFluidFilters
-
getCraftRecipe
-
getAllCraftRecipes
-
VerifyAllCraftRecipesAreLearnable
public void VerifyAllCraftRecipesAreLearnable() -
checkAutoLearn
-
checkMetaRecipes
-
checkMetaRecipe
-
getStringList
-
getAllStringLists
-
getEnergyDefinitionScript
-
getAllEnergyDefinitionScripts
-
getFluidDefinitionScript
-
getAllFluidDefinitionScripts
-
getTimedActionScript
-
getAllTimedActionScripts
-
getRagdollScript
-
getPhysicsHitReactionScript
-
getCharacterTraitScript
-
getCharacterProfessionScript
-
update
public void update() -
LoadFile
public void LoadFile(ScriptLoadMode loadMode, String filename, boolean bLoadJar) throws FileNotFoundException - Throws:
FileNotFoundException
-
ParseScript
-
searchFolders
-
getItemName
-
getModule
-
getModule
-
getModuleNoDisableCheck
-
FindItem
-
FindItem
-
isDrainableItemType
-
CheckExitPoints
public void CheckExitPoints() -
getItemsTag
-
getItemsByType
-
Reset
public void Reset() -
getChecksum
-
getCurrentLoadFileMod
-
getCurrentLoadFileAbsPath
-
getCurrentLoadFileName
-
Load
- Throws:
IOException
-
ReloadScripts
-
ReloadScripts
-
LoadedAfterLua
public void LoadedAfterLua() -
PostTileDefinitions
public void PostTileDefinitions() -
PostWorldDictionaryInit
public void PostWorldDictionaryInit() -
hasLoadErrors
public boolean hasLoadErrors() -
hasLoadErrors
public boolean hasLoadErrors(boolean onlyCritical) -
resolveGetItemTypes
-
getAllRecipesFor
-
getItemTypeForClothingItem
-
getItemForClothingItem
-
getZedDmgMap
-
resolveItemType
-
resolveModelScript
-
getSpecificItem
-
getSpecificEntity
-