Removed NioTSO client and server

- NioTSO client isn't needed because we're using RayLib
- Added FreeSO's API server to handle most backend operations
This commit is contained in:
Tony Bark 2024-05-01 02:55:43 -04:00
parent f12ba1502b
commit 22191ce648
591 changed files with 53264 additions and 3362 deletions

View file

@ -0,0 +1,14 @@
CREATE TABLE IF NOT EXISTS `fso_bonus` (
`avatar_id` int(10) unsigned NOT NULL DEFAULT '0',
`period` date NOT NULL,
`bonus_visitor` int(11) DEFAULT NULL,
`bonus_property` int(11) DEFAULT NULL,
`bonus_sim` int(11) DEFAULT NULL,
PRIMARY KEY (`avatar_id`,`period`),
CONSTRAINT `FK_fso_bonus_fso_avatars` FOREIGN KEY (`avatar_id`) REFERENCES `fso_avatars` (`avatar_id`) ON DELETE CASCADE ON UPDATE CASCADE
) COLLATE='utf8_general_ci'
ENGINE=InnoDB;
CREATE TRIGGER `fso_bonus_after_insert` AFTER INSERT ON `fso_bonus` FOR EACH ROW BEGIN
UPDATE fso_avatars a SET budget = (budget + IFNULL(NEW.bonus_visitor,0) + IFNULL(NEW.bonus_property,0) + IFNULL(NEW.bonus_sim,0)) WHERE a.avatar_id = NEW.avatar_id;
END;