示例#1
0
        public virtual void SetModdedSystem(ModSystem moddedSystem)
        {
            if (!ModdedSystemType.IsAssignableFrom(moddedSystem.GetType()))
            {
                throw new InvalidOperationException($"Cannot accept {moddedSystem.Name} for {Name} as it is not of type {ModdedSystemType.Name}.");
            }

            ModSystemBase    = moddedSystem;
            ModdedSystemType = moddedSystem.GetType();
        }
示例#2
0
 public void Pair(ModSystem system)
 {
     SetModdedSystem(system);
     system.SetCoreSystem(this);
 }