C# Class ObjectHelper

Afficher le fichier Open project: dggriffin/Rain-Rain-Ritual Class Usage Examples

Méthodes publiques

Свойство Type Description
children List
components List
foldout bool
mine GameObject
parent ObjectHelper,

Méthodes publiques

Méthode Description
BubbleRefresh ( ) : void
Copy ( bool toMine ) : void
DestroyAndClearRefs ( Object obj, bool isMine ) : void
DoRefresh ( ) : IEnumerator
DoRefresh ( OnRefreshComplete onComplete ) : IEnumerator
Draw ( ) : void

Default draw for drawing the root. Should only be called on root object NOTE: Why is width not 0?

Draw ( float width ) : void

Draw this node in the tree.

ExpandDiffs ( ) : bool
FindComp ( Object find, bool isMine ) : ComponentHelper,
FindObj ( Object find, bool isMine ) : ObjectHelper,
FindRefs ( Object source, bool isMine, List properties ) : void
GetDrawCount ( ) : int
GetObjectSpouse ( GameObject obj, bool isMine ) : GameObject

Get the spouse (counterpart) of an object within this tree. If the spouse is missing, copy the object and return the copy

Refresh ( ) : IEnumerable

Refresh is a very crucial function. Not only does it refresh the abstracted lists of ObjectHelpers and ComponentHelpers to reflect the actual scene, it is responsible for actually comparing objects

SetFoldoutRecur ( bool state ) : void
UnsetFlagRecursive ( ) : void

Private Methods

Méthode Description
ComponentIsFiltered ( System type ) : bool
Copy ( GameObject original, bool isMine ) : GameObject

Do the actual GameObject copy. This is generalized because the process is totally symmetrical. Come to think of it so is the other version of Copy. I can probably merge these back together.

DrawObject ( bool isMine, float width ) : void
GetObject ( bool isMine ) : GameObject
SameObject ( GameObject mine, GameObject theirs ) : bool

Method Details

BubbleRefresh() public méthode

public BubbleRefresh ( ) : void
Résultat void

Copy() public méthode

public Copy ( bool toMine ) : void
toMine bool
Résultat void

DestroyAndClearRefs() public méthode

public DestroyAndClearRefs ( Object obj, bool isMine ) : void
obj UnityEngine.Object
isMine bool
Résultat void

DoRefresh() public méthode

public DoRefresh ( ) : IEnumerator
Résultat IEnumerator

DoRefresh() public méthode

public DoRefresh ( OnRefreshComplete onComplete ) : IEnumerator
onComplete OnRefreshComplete
Résultat IEnumerator

Draw() public méthode

Default draw for drawing the root. Should only be called on root object NOTE: Why is width not 0?
public Draw ( ) : void
Résultat void

Draw() public méthode

Draw this node in the tree.
public Draw ( float width ) : void
width float
Résultat void

ExpandDiffs() public méthode

public ExpandDiffs ( ) : bool
Résultat bool

FindComp() public méthode

public FindComp ( Object find, bool isMine ) : ComponentHelper,
find UnityEngine.Object
isMine bool
Résultat ComponentHelper,

FindObj() public méthode

public FindObj ( Object find, bool isMine ) : ObjectHelper,
find UnityEngine.Object
isMine bool
Résultat ObjectHelper,

FindRefs() public méthode

public FindRefs ( Object source, bool isMine, List properties ) : void
source UnityEngine.Object
isMine bool
properties List
Résultat void

GetDrawCount() public méthode

public GetDrawCount ( ) : int
Résultat int

GetObjectSpouse() public méthode

Get the spouse (counterpart) of an object within this tree. If the spouse is missing, copy the object and return the copy
public GetObjectSpouse ( GameObject obj, bool isMine ) : GameObject
obj GameObject The object we're looking for
isMine bool Whether the object came from Mine (left)
Résultat GameObject

Refresh() public méthode

Refresh is a very crucial function. Not only does it refresh the abstracted lists of ObjectHelpers and ComponentHelpers to reflect the actual scene, it is responsible for actually comparing objects
public Refresh ( ) : IEnumerable
Résultat IEnumerable

SetFoldoutRecur() public méthode

public SetFoldoutRecur ( bool state ) : void
state bool
Résultat void

UnsetFlagRecursive() public méthode

public UnsetFlagRecursive ( ) : void
Résultat void

Property Details

children public_oe property

public List children
Résultat List

components public_oe property

public List components
Résultat List

foldout public_oe property

public bool foldout
Résultat bool

mine public_oe property

public GameObject mine
Résultat GameObject

parent public_oe property

public ObjectHelper, parent
Résultat ObjectHelper,