Assembly: VRage.Game.dll

public interface IMyGridGroupData

A class that presenting connection between grids WARNING: you must not keep link to instance or you have to remove link when event OnReleased is fired Use Get/SetVariable to store data in GridGroups. Variables are cleared after OnRelease is fired

Events

Member Description
OnGridAdded First MyGridGroupData(this) - where grid would be added Second MyGridGroupData(Nullable) - previous grid group of grid
OnGridRemoved First MyGridGroupData(this) - from where grid was removed Second MyGridGroupData(Nullable) - where grid group would be added Called after Keen OnAdded logic, like MyGridLogicalGroupData.OnNodeAdded
OnReleased You must clean your subscriptions here. Instances of IMyGridGroupData are re-used in ObjectPool. At the time event is called it has no grids attached to it.

Properties

Member Description
LinkType Get connection type

Methods

Member Description
GetGrids(T)
GetVariable(Guid)
RemoveVariable(Guid) Removes stored variable
SetVariable(Guid, object) Sets memory-stored variable
TryGetVariable(Guid, out T)

Inheritors: