Click or drag to resize
SingletonT Class
An implementation of the singleton design pattern.
Inheritance Hierarchy
SystemObject
  PlanetbaseSingletonT
    More...

Namespace: Planetbase
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public abstract class Singleton<T>
where T : new(), Singleton<T>

Type Parameters

T
Any class that extends Singleton.

The SingletonT type exposes the following members.

Constructors
Methods
  NameDescription
Public methoddestroy
Called when destroying the instance. Any cleanup code needs to go here.
Public methodStatic memberdestroyInstance
Calls mInstance.destroy() and then sets the instance to null.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Private methodFieldGetter (Inherited from Object.)
Private methodFieldSetter (Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Private methodGetFieldInfo (Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodStatic membergetInstance
Gets or instantiates the sole instance of the class. Do not access mInstance, as it is not guaranteed to be set.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic membermInstance
The sole instance of the class
Top
See Also
Inheritance Hierarchy
SystemObject
  PlanetbaseSingletonT
    PlanetbaseAudioPlayer
    PlanetbaseChallengeManager
    PlanetbaseCharacterPropManager
    PlanetbaseColony
    PlanetbaseDebugManager
    PlanetbaseDisasterManager
    PlanetbaseEnvironmentManager
    PlanetbaseGameHintManager
    PlanetbaseGuiStyles
    PlanetbaseHelpManager
    PlanetbaseIdGenerator
    PlanetbaseKeyBindingManager
    PlanetbaseLandingShipManager
    PlanetbaseMainLight
    PlanetbaseManufactureLimits
    PlanetbaseMessageLog
    PlanetbaseMeteorManager
    PlanetbaseMilestoneManager
    PlanetbaseMusicManager
    PlanetbaseParticleManager
    PlanetbasePlanetManager
    PlanetbaseProfile
    PlanetbaseSecurityManager
    PlanetbaseServerInterfaceManager
    PlanetbaseShortcutManager
    PlanetbaseSignManager
    PlanetbaseStatsCollector
    PlanetbaseTechManager
    PlanetbaseTerrainGenerator
    PlanetbaseThunderstormManager
    PlanetbaseTimeManager
    PlanetbaseTitleScene
    PlanetbaseTypeListManager
    PlanetbaseVisitorEventManager