public static void Out(ColossalFramework.Plugins.PluginManager.MessageType messageType, bool useComma, params System.Object[] o) { try { string s = ""; for (int i = 0; i < o.Length; i++) { s += o[i].ToString(); if (i < o.Length - 1 && useComma) s += " , "; } DebugOutputPanel.AddMessage(messageType, s); } catch (Exception) { } }
void OnButtonToggled(ColossalFramework.UI.UIComponent component, ColossalFramework.UI.UIMouseEventParameter eventParam) { toolActive = !toolActive; }
public override void Deserialize(ColossalFramework.IO.DataSerializer s) { this.author = s.ReadSharedString(); this.message = s.ReadSharedString(); this.citizen = s.ReadUInt32(); }
public override void Serialize(ColossalFramework.IO.DataSerializer s) { s.WriteSharedString(this.author); s.WriteSharedString(this.text); s.WriteUInt32(this.citizen); }
public override void AfterDeserialize(ColossalFramework.IO.DataSerializer s) { }