You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A GameObject instance is an instance of an object in the world. For each object type, there is a set of properties that are intrinsic to the type, and there are instance properties. Instance properties will be part of the GameObject, but other things that are "static" need to be stored somewhere else.
That "somewhere else" is the GODefinition object. There is one definition object per game object type. The game object instances have a read-only pointer back to their definition.
This allows for two things:
Keeps GameObject free from properties that are "set once" and never modified
Allows for interesting runtime changes like instantly changing all instances of a type by modifying the definition
The text was updated successfully, but these errors were encountered:
A
GameObject
instance is an instance of an object in the world. For each object type, there is a set of properties that are intrinsic to the type, and there are instance properties. Instance properties will be part of theGameObject
, but other things that are "static" need to be stored somewhere else.That "somewhere else" is the
GODefinition
object. There is one definition object per game object type. The game object instances have a read-only pointer back to their definition.This allows for two things:
GameObject
free from properties that are "set once" and never modifiedThe text was updated successfully, but these errors were encountered: