Exemple #1
0
        private static void ApplyMap(IMyCubeBlock block, ASync.Id id, string value)
        {
            ASync sync;

            if (!ASync.TryGet(id, out sync))
            {
                Logger.AlwaysLog("Failed to get TerminalSync for " + id, Logger.severity.ERROR);
            }
            else
            {
                Logger.TraceLog("Setting entity value for " + block.nameWithId() + ", value id: " + id + ", value: " + value);
                sync.SetValueFromSave(block.EntityId, value);
            }
        }
Exemple #2
0
 public SimpleMapping(Type BlockType, byte EntityValueId, ASync.Id TerminalSyncId)
     : base(BlockType, EntityValueId)
 {
     this.TerminalSyncId = TerminalSyncId;
 }