This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gd_scene load_steps=2 format=3 uid="uid://cbmprpim3xigq"] | |
[ext_resource type="Script" path="res://addons/talo/samples/saves_tutorial.gd" id="1_r0iv1"] | |
[node name="SavesTutorial" type="Node2D"] | |
script = ExtResource("1_r0iv1") | |
[node name="Control" type="Control" parent="."] | |
layout_mode = 3 | |
anchors_preset = 8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table className='table-auto w-full'> | |
<TableHeader columns={['Aliases', 'Properties', 'Registered', 'Last seen']} /> | |
<TableBody iterator={players}> | |
{(player) => ( | |
<> | |
<TableCell><PlayerAliases aliases={player.aliases} /></TableCell> | |
<TableCell> | |
<div className='flex items-center'> | |
<span className='min-w-5'>{Object.keys(player.props).length}</span> | |
<Button |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DirtFragment { | |
public string Id { get; set; } | |
public float FertilisationFactor { get; set; } | |
public int ChanceToFind { get; set; } | |
public float X { get; set; } | |
public float Y { get; set; } | |
public static object Deserialize(byte[] data) { | |
DirtFragment result = new DirtFragment(); | |
using (MemoryStream m = new MemoryStream(data)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Photon.Pun; | |
using System.Collections.Generic; | |
using Pathfinding; | |
using System.Linq; | |
using ExitGames.Client.Photon; | |
using System.Collections; | |
public class WorldGenerator : MonoBehaviour { | |
public static System.Random rng, masterRng; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Photon.Pun; | |
using System.Collections.Generic; | |
using Pathfinding; | |
using System.Linq; | |
using ExitGames.Client.Photon; | |
public class WorldGenerator : MonoBehaviour { | |
public static System.Random rng, masterRng; | |
public static float worldSize; |