예제 #1
0
        public static ModFluid SetDefaults(int type)
        {
            ModFluid fluid = FluidLoader.fluids.First(x => x.type == type).NewInstance();

            fluid.SetDefaults();
            fluid.SetStaticDefaults();
            return(fluid);
        }
예제 #2
0
        public static ModFluid SetDefaults(string name)
        {
            ModFluid fluid = FluidLoader.fluidNames[name].NewInstance();

            fluid.SetDefaults();
            fluid.SetStaticDefaults();
            return(fluid);
        }