Exemplo n.º 1
0
 public static void PublishTexture(NetworkId entityId, Texture2D texture, BoltConnection origin = null)
 {
     if (OnTextureChanged != null)
     {
         OnTextureChanged.Invoke(entityId, texture, origin);
     }
 }
Exemplo n.º 2
0
        public void AddChange(string path, Bitmap image)
        {
            foreach (var list in Lists.Values)
            {
                var item = list.FirstOrDefault(n => n.name == path);
                if (item != null)
                {
                    ImageChanges[path] = new ImageChange()
                    {
                        datafile = item.datafile,
                        image    = image,
                        path     = path
                    };
                    item.changed = true;
                    OnTextureChanged?.Invoke(item, image);
                    return;
                }
            }

            Console.Write($"Warning: attempt to change file {path} which is not in the library");
        }
Exemplo n.º 3
0
 public virtual void TriggerTextureChange()
 {
     OnTextureChanged?.Invoke(this);
 }