示例#1
0
        public static void ProcessMessage(ReputationMessage receivedMessage)
        {
            //Logger.MsgDebug("Process Rep Sync Msg", DebugTypeEnum.Owner);
            ReputationMessage existingMsg = null;

            if (_messages.TryGetValue(receivedMessage.ReputationFactionTarget, out existingMsg))
            {
                //Logger.MsgDebug("Process Existing Rep Sync Msg", DebugTypeEnum.Owner);
                existingMsg.DisplayMessage(receivedMessage.ReputationChangeAmount);
                return;
            }

            //Logger.MsgDebug("Process New Rep Sync Msg", DebugTypeEnum.Owner);
            receivedMessage.DisplayMessage(receivedMessage.ReputationChangeAmount);
            _messages.Add(receivedMessage.ReputationFactionTarget, receivedMessage);
        }
示例#2
0
 public SyncContainer(ReputationMessage repAlert)
 {
     this.Mode = SyncMode.ReputationAlert;
     this.Data = MyAPIGateway.Utilities.SerializeToBinary <ReputationMessage>(repAlert);
 }