public LLEMapChange(int type, LLEObject theObject, string newState) { mType = type; mObject = theObject; mMapName = theObject.getMapName(); mNewState = newState; }
public LLEObject clone() { LLEObject theObject = new LLEObject(mSprite.getX(), mSprite.getY()); theObject.setName(mName); theObject.setScriptName(mScriptName); theObject.setSprite(mSprite.clone()); theObject.setMapName(mMapName); theObject.setEnabled(mEnabled); theObject.setDestroyable(mDestroyable); if (mIsItem) { theObject.setAsItem(); } return theObject; }
public void extractObjectVariables(LLEObject theTargetObject) { targetObject = theTargetObject; if (File.Exists("LemonPlatformEditor/ContentDatabase/" + mSaveSlotName + "/" + targetObject.getName() + "Variables.xml")) { XmlTextReader xmlParser = new XmlTextReader("LemonPlatformEditor/ContentDatabase/" + mSaveSlotName + "/" + targetObject.getName() + "Variables.xml"); while (xmlParser.Read()) { if (xmlParser.NodeType == XmlNodeType.Element) { tagName = xmlParser.Name; } else if (xmlParser.NodeType == XmlNodeType.Text) { if (tagName == "VariableName") { variableName = xmlParser.Value; } else if (tagName == "VariableValue") { variableValue = xmlParser.Value; addScriptVariableToList(); } } } xmlParser.Close(); } }