public ProppStoryData(ProppStoryData data) { interdiction = data.interdiction; villainy = data.villainy; functions = data.functions; characters = data.characters; locations = data.locations; }
public ProppStoryData(ProppStory story) { interdiction = new ProppActionData(story.interdiction); villainy = new ProppVillainyData(story.villainy); foreach (var f in story.functions) { functions.Add(new ProppFunctionData(f)); } characters = story.characters; }
public ProppStoryData(ProppStory story, int newId, string newName) { interdiction = new ProppActionData(story.interdiction); villainy = new ProppVillainyData(story.villainy); foreach (var f in story.functions) { functions.Add(new ProppFunctionData(f)); } characters = story.characters; id = newId; name = newName; }
public ProppStory(ProppStoryData data) { ProppActionFactory.Instance.SetStory(this); characters = data.characters; locations = data.locations; characters.SetDict(); locations.SetDict(); interdiction = ProppActionFactory.Instance.CreateAction(data.interdiction); villainy = new ProppVillainy(data.villainy); foreach (var f in data.functions) { AddFunction(new ProppFunction(f)); } }