示例#1
0
    // Rotation/Orientation?
    // ...

    public string ToJSON()
    {
        Dictionary <string, string> tmp = new Dictionary <string, string>();

        tmp.Add("SlotNumber", SlotNumber.ToString());
        tmp.Add("Checksum", MetaData.Checksum.ToString());
        return(Serial.DictToJSON(tmp));
    }
    private void OnSelected(bool isOn)
    {
        var slotSelectedMessage = Database.Instance.Select <TextData>("TextDataTable")
                                  .Select("SLOT_SELECT_MESSAGE")
                                  .text;

        slotSelectedMessage = slotSelectedMessage.Replace("${slotNumber}", SlotNumber.ToString());

        if (isOn)
        {
            onSelected.Invoke(this);
            TextDisplay.Instance.Show(slotSelectedMessage);
            SaveSlotSystem.Instance.SelectSlot(SlotNumber);
        }
    }
示例#3
0
 public override string ToString()
 {
     return(SlotNumber.ToString());
 }