bool IEntityReplicationFilter.AllowReplicationTo(BoltConnection connection) { if (base.transform.parent) { BoltEntity component = base.transform.parent.GetComponent <BoltEntity>(); return(this._ready && connection.ExistsOnRemote(component) == ExistsResult.Yes); } return(this._ready); }
bool IEntityReplicationFilter.AllowReplicationTo(BoltConnection connection) { if (this.Anchor1 && this.Anchor2) { BoltEntity component = this.Anchor1.GetComponentInParent(typeof(ICoopAnchorStructure)).GetComponent <BoltEntity>(); BoltEntity component2 = this.Anchor2.GetComponentInParent(typeof(ICoopAnchorStructure)).GetComponent <BoltEntity>(); return(component.isAttached && component2.isAttached && connection.ExistsOnRemote(component) == ExistsResult.Yes && connection.ExistsOnRemote(component2) == ExistsResult.Yes); } return(false); }
bool IEntityReplicationFilter.AllowReplicationTo(BoltConnection connection) { if (this && base.entity && base.entity.isAttached && base.state != null && base.state.Garden) { if (base.state.Garden.isFrozen) { base.state.Garden.Freeze(false); } return(connection.ExistsOnRemote(base.state.Garden) == ExistsResult.Yes); } return(false); }
public bool AllowReplicationTo(BoltConnection connection) { if (this && base.entity && base.entity.isAttached && base.state != null && base.state.Effigy) { if (base.state.Effigy.isFrozen) { base.state.Effigy.Freeze(false); } return(connection.ExistsOnRemote(base.state.Effigy) == ExistsResult.Yes); } return(false); }
bool IEntityReplicationFilter.AllowReplicationTo(BoltConnection connection) { return this.CurrentSupport == null || connection.ExistsOnRemote((this.CurrentSupport as MonoBehaviour).GetComponent<BoltEntity>()) == ExistsResult.Yes; }
bool IEntityReplicationFilter.AllowReplicationTo(BoltConnection connection) { return(this.CurrentSupport == null || connection.ExistsOnRemote((this.CurrentSupport as MonoBehaviour).GetComponent <BoltEntity>()) == ExistsResult.Yes); }
bool IEntityReplicationFilter.AllowReplicationTo(BoltConnection connection) { return(this && base.state != null && base.state.Garden && connection.ExistsOnRemote(base.state.Garden) == ExistsResult.Yes); }
bool IEntityReplicationFilter.AllowReplicationTo(BoltConnection connection) { BoltEntity parentHack = this.GetParentHack(); return(parentHack && connection.ExistsOnRemote(parentHack) == ExistsResult.Yes); }
bool IEntityReplicationFilter.AllowReplicationTo(BoltConnection connection) { if (this.Anchor1 && this.Anchor2) { BoltEntity component = this.Anchor1.GetComponentInParent(typeof(ICoopAnchorStructure)).GetComponent<BoltEntity>(); BoltEntity component2 = this.Anchor2.GetComponentInParent(typeof(ICoopAnchorStructure)).GetComponent<BoltEntity>(); return component.isAttached && component2.isAttached && connection.ExistsOnRemote(component) == ExistsResult.Yes && connection.ExistsOnRemote(component2) == ExistsResult.Yes; } return false; }
bool IEntityReplicationFilter.AllowReplicationTo(BoltConnection connection) { return(this.GetParentHack() && connection.ExistsOnRemote(this.GetParentHack()) == ExistsResult.Yes); }