public static NStructManager GetInstance() { if (instance == null) { instance = new NStructManager(); } return(instance); }
public bool Load(Stream s, bool bin = false) { bool ans = false; if (s != null) { ans = NStructManager.GetInstance().Read(s, bin) && Read(s, bin); } return(ans); }
public bool Init() { if (partentName != null && partentName.Length != 0) { NStruct p = NStructManager.GetInstance().Find(partentName); if (p != null) { partent = p; } } return(true); }
public void SetPartentName(String name) { partentName = name; if (partent != null && partent.Name.CompareTo(name) == 0) { return; } else { NStruct p = NStructManager.GetInstance().Find(partentName); if (p != null) { partent = p; } } }