public override bool SetProperty(string propertyName, string value, string[] source, ref int line) { switch (propertyName) { case "Name": m_name = value; break; case "Property": m_property = Parser.ParseInt(value, line); break; case "Sound": m_sound = Parser.ParseInt(value, line); break; case "Line Color": m_lineColour = Parser.ParseUint(value, line); break; case "Viewable": m_viewable = Parser.ParseInt(value, line); break; case "Effect Parameter Entry": EffectParameterEntry entry = new EffectParameterEntry(); entry.Parse(source, ref line, OwnerProject); m_effectParameterEntries.Add(entry); break; case "RPC Point": RpcPoint point = new RpcPoint(); point.Parse(source, ref line, OwnerProject); m_rpcPoints.Add(point); break; case "Variable Entry": // Not in the docs! m_variable = new VariableEntry(); m_variable.Parse(source, ref line, OwnerProject); // XXX can you have more than one? If so we need a List break; default: return(false); } return(true); }
public override bool SetProperty( string propertyName, string value, string[] source, ref int line ) { switch ( propertyName ) { case "Name": m_name = value; break; case "Property": m_property = Parser.ParseInt( value, line ); break; case "Sound": m_sound = Parser.ParseInt( value, line ); break; case "Line Color": m_lineColour = Parser.ParseUint( value, line ); break; case "Viewable": m_viewable = Parser.ParseInt( value, line ); break; case "Effect Parameter Entry": EffectParameterEntry entry = new EffectParameterEntry(); entry.Parse( source, ref line, OwnerProject ); m_effectParameterEntries.Add( entry ); break; case "RPC Point": RpcPoint point = new RpcPoint(); point.Parse( source, ref line, OwnerProject ); m_rpcPoints.Add( point ); break; case "Variable Entry": // Not in the docs! m_variable = new VariableEntry(); m_variable.Parse( source, ref line, OwnerProject ); // XXX can you have more than one? If so we need a List break; default: return false; } return true; }