Beispiel #1
0
 public void toggleHeightLock(ushort val)
 {
     if (!otsiTeleport.RemoveIfExists(ZOffset()))
     {
         otsiTeleport.AddItem(ZOffset(), val, 2);
     }
 }
Beispiel #2
0
 //This should be integrated into oTimerSetItems
 private oTimerSetItems itemToggle(oTimerSetItems tsi, uint offset, ushort val, byte size, oTimerSetItems.LBAVersion LBAVer)
 {
     if (null == tsi)
     {
         tsi = new oTimerSetItems(LBAVer);
     }
     if (!tsi.RemoveIfExists(offset))
     {
         tsi.AddItem(offset, val, size);
     }
     if (tsi.IsEmpty())
     {
         tsi = null;
     }
     return(tsi);
 }