Пример #1
0
        ////////////////

        public override void Initialize()
        {
            var mymod = (ModHelpersMod)this.mod;

            this.ObsoleteId    = Guid.NewGuid().ToString("D");
            this.ObsoleteId2   = WorldHelpers.GetUniqueId(false);
            this.HasObsoleteId = false;              // 'Load()' decides if no pre-existing one is found

            this.WorldLogic = new WorldLogic();

            if (String.IsNullOrEmpty(this.ObsoleteId2))
            {
                throw new HamstarException("UID not defined.");
            }
        }
        ////////////////

        public static string GetFileNameBase()
        {
            return("world_" + WorldHelpers.GetUniqueId(true) + "_ents");
        }