コード例 #1
0
ファイル: Contexts.cs プロジェクト: pandey623/ProjectNotch
 public static NetworkingEntity GetEntityWithPlayer(this NetworkingContext context, int id)
 {
     return(((Entitas.PrimaryEntityIndex <NetworkingEntity, int>)context.GetEntityIndex(Contexts.Player)).GetEntity(id));
 }
コード例 #2
0
ファイル: Contexts.cs プロジェクト: pandey623/ProjectNotch
 public static System.Collections.Generic.HashSet <NetworkingEntity> GetEntitiesWithOwner(this NetworkingContext context, int value)
 {
     return(((Entitas.EntityIndex <NetworkingEntity, int>)context.GetEntityIndex(Contexts.Owner)).GetEntities(value));
 }