public void RemoveActor(SceneSnapshot snapshot, SceneActor actor) { if (snapshot.Actors.Contains(actor.Desc.Id)) { snapshot.Actors.Remove(actor.Desc.Id); } }
public void AddActor(SceneSnapshot snapshot, SceneActor actor) { if (!snapshot.Actors.Contains(actor.Desc.Id)) { snapshot.Actors.Add(actor.Desc.Id); } }