Ejemplo n.º 1
0
        /// <summary>
        /// Updates a value on the instance.
        /// </summary>
        /// <param name="InstanceId">The instance identifier</param>
        /// <param name="message">The message being stored.</param>
        public static void UpdateInstance(string InstanceId, PhotonMessage message)
        {
            message.Author = GetAuthor();
            if (!Handlers.ContainsKey(message.PackageId))
            {
                return;
            }
            var handler = Handlers[message.PackageId];

            handler.Update(InstanceId, message);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Message being added to the ledger.
 /// </summary>
 /// <param name="message">Message being added to the ledger.</param>
 public static void AddMessage(PhotonMessage message)
 {
     message.Author = GetAuthor(); // I won't trust you
     Handlers[message.PackageId].Add(message);
 }