public static void PublishTexture(NetworkId entityId, Texture2D texture, BoltConnection origin = null) { if (OnTextureChanged != null) { OnTextureChanged.Invoke(entityId, texture, origin); } }
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"); }
public virtual void TriggerTextureChange() { OnTextureChanged?.Invoke(this); }