PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
SurfaceInfo Class Reference

Private Member Functions

protected void SurfaceInfo ()
 
protected void ~SurfaceInfo ()
 
proto string GetName ()
 
proto string GetEntryName ()
 
proto string GetSurfaceType ()
 
proto float GetRoughness ()
 
proto float GetDustness ()
 
proto float GetBulletPenetrability ()
 
proto float GetThickness ()
 
proto float GetDeflection ()
 
proto float GetTransparency ()
 
proto float GetAudability ()
 
proto bool IsLiquid ()
 
proto bool IsStairs ()
 
proto bool IsPassthrough ()
 
proto bool IsSolid ()
 
proto string GetSoundEnv ()
 
proto string GetImpact ()
 
proto int GetLiquidType ()
 See 'LiquidTypes' in 'constants.c'.
 
proto int GetStepParticleId ()
 
proto int GetWheelParticleId ()
 

Static Private Member Functions

static proto SurfaceInfo GetByName (string name)
 
static proto SurfaceInfo GetByFile (string name)
 

Detailed Description

Unmanaged surface info handle. Provides API to surfaces that are defined as part of 'CfgSurfaces' or exist in an objects .bisurf file. Lifetime is managed in code so don't store handles of this type yourself. Any created 'SurfaceInfo' is destroyed during 'Game' ScriptModule destruction.

Constructor & Destructor Documentation

◆ SurfaceInfo()

protected void SurfaceInfo ( )
inlineprivate

◆ ~SurfaceInfo()

protected void ~SurfaceInfo ( )
inlineprivate

Member Function Documentation

◆ GetAudability()

proto float GetAudability ( )
private

◆ GetBulletPenetrability()

proto float GetBulletPenetrability ( )
private

◆ GetByFile()

static proto SurfaceInfo GetByFile ( string  name)
staticprivate

Warning: O(n) time complexity where n is the total number of loaded surfaces Note: Will load the surface if not loaded Warning: If the surface name is invalid, it will still create a SurfaceInfo 'CfgSurfaces' can be pathed by having the name prefixed with '#', so 'GetByFile("#cp_grass")' will return same as 'GetByName("cp_grass")'

Referenced by ActionTarget().

◆ GetByName()

static proto SurfaceInfo GetByName ( string  name)
staticprivate

Warning: O(n) time complexity where n is the total number of loaded surfaces Note: Will load the surface if not loaded Warning: If the surface name is invalid, it will still create a SurfaceInfo

Referenced by Surface::CheckLiquidSource(), ActionFillBottleBase::GetLiquidType(), Surface::GetStepsParticleID(), and Surface::GetWheelParticleID().

◆ GetDeflection()

proto float GetDeflection ( )
private

◆ GetDustness()

proto float GetDustness ( )
private

◆ GetEntryName()

proto string GetEntryName ( )
private

Referenced by ActionTargets::Update().

◆ GetImpact()

proto string GetImpact ( )
private

◆ GetLiquidType()

proto int GetLiquidType ( )
private

◆ GetName()

proto string GetName ( )
private

◆ GetRoughness()

proto float GetRoughness ( )
private

◆ GetSoundEnv()

proto string GetSoundEnv ( )
private

◆ GetStepParticleId()

proto int GetStepParticleId ( )
private

See 'ParticleList', if config entry not set, value is 'ParticleList.NONE', if config entry is set but doesn't exist, value is 'ParticleList.INVALID'

Referenced by Surface::GetStepsParticleID().

◆ GetSurfaceType()

proto string GetSurfaceType ( )
private

Referenced by ActionTargets::Update().

◆ GetThickness()

proto float GetThickness ( )
private

◆ GetTransparency()

proto float GetTransparency ( )
private

◆ GetWheelParticleId()

proto int GetWheelParticleId ( )
private

◆ IsLiquid()

proto bool IsLiquid ( )
private

◆ IsPassthrough()

proto bool IsPassthrough ( )
private

◆ IsSolid()

proto bool IsSolid ( )
private

◆ IsStairs()

proto bool IsStairs ( )
private

The documentation for this class was generated from the following file: