public static void AddCountry(SnapshotBuilder snapshot, Coordinates coordinates) { var entityId = snapshot.GenerateId(); var entity = EntityTemplateFactory.CreateCountryTemplate(coordinates); snapshot.Add(entityId, entity); }
public static void AddTree(SnapshotBuilder snapshot, Coordinates position) { var treeEntityId = snapshot.GenerateId(); var spawnRotation = (uint)Mathf.CeilToInt((float)rand.NextDouble() * 360.0f); var entity = EntityTemplateFactory.CreateCountryTemplate(position); snapshot.Add(treeEntityId, entity); }