AcTools.Render.Kn5Specific.Utils.CarLight.Initialize C# (CSharp) Method

Initialize() public method

public Initialize ( CarLightType type, Kn5RenderableList main, IniFileSection section ) : void
type CarLightType
main AcTools.Render.Kn5Specific.Objects.Kn5RenderableList
section IniFileSection
return void
        public virtual void Initialize(CarLightType type, Kn5RenderableList main, IniFileSection section) {
            Type = type;
            Name = section.GetNonEmpty("NAME");
            Emissive = section.GetVector3("COLOR").Select(y => (float)y).ToArray().ToVector3();
            Node = main.GetByName(Name);
        }
    }